-
MODX Staff
- 10,725 Posts
Are you also on GoDaddy Hosting?
2 sites on GoDaddy Hosting and 1 on 1Gb.ru
-
MODX Staff
- 10,725 Posts
This seems to be a recurring problem on GoDaddy servers; apparently they have disabled flock functionality in PHP and as a result, MODX's file caching mechanism is always fooled into thinking it has an exclusive lock when attempting to write new or update existing cache files. This sometimes results in two processes writing to the file at the same time, producing a combined result that is not even valid PHP code; thus the blank result and likely a fatal PHP error in your PHP's error_log (or the MODX core/cache/error.log).
I'm going to look into providing a backup file-locking strategy for environments like this that may not be as performant, but would prevent this problem. However, I'm not sure we can auto-detect the presence of the problem, i.e. it would likely have to manually be enabled in environments where this problem was being experienced.
GoDaddy is the worst hosting provider I've ever seen. It is really good for buying domain names, but for hosting...stay away!
Thanks for the explanation and quick response.