Remove all instances of reading/writing that does not use FlySystem #4977
Labels
Affects:Developers
Affects those who customize the CMS using code.
Enhancement:Level Of Effort:3
Enhancements requiring a significant level of effort.
Enhancement:Quality Of Life:1
Enhancements that will have a negligible or small improvement in quality of life.
Product Areas:Code Quality
Product Areas:Framework
Status:Available
Reviewed issue, it’s real, we’d review a pull request.
Type:Enhancement
A need for something new.
Throughout the core, we use FlySystem, and then hardcoded fread/frwrite, file_put_contents, touch etc
These hardcoded paths always assume a local file store which is pretty bad for multiple reasons.
One big thing that stood out for me is that many caches are hardcoded to /application/files/cache, which if you have a distributed site, doesn't work. Each "version" of the site could end up with different out of sync caches.
Currently we also have some things use the default File Storage Location, but most of the time we don't, just those hardcoded paths.
Some stuff that needs to be updated (probably):
setupFilesystem()
This is just a cursory list so far.
The text was updated successfully, but these errors were encountered: