3 ms·
One of my biggest issues with php was the number of imports and file reads involved. It made running something like wordpress _really_ slow on slow disks or ov
by johntash 1y ago
One of my biggest issues with php was the number of imports and file reads involved. It made running something like wordpress _really_ slow on slow disks or over nfs. I don't remember apcu or opcache helping much for that because I think it still did a stat on every file iirc.
For single-file php apps or just not using a big framework, it's not really a problem.
- spdionis 1y agoYou can configure opcache to never stat unless it's reloaded
- johntash 1y agoHuh, well that sounds like it would have been useful. It's been at least 10 years since I did any php dev work, but maybe I'll find an excuse to use it again for something.
- dingdingdang 1y agoNot only can you configure it to never stat; it has also been on by default since PHP 5.5 afaicr