I'm trying to run squiz with PHP opcache validate_timestamps=0 for perfromance reason.
However, it does not work really well with update. What is the best way to programmatically invalidate opcache ?
I'm trying to run squiz with PHP opcache validate_timestamps=0 for perfromance reason.
However, it does not work really well with update. What is the best way to programmatically invalidate opcache ?
Turning off validate_timestamps is not recommended. We've seen some fairly serious issues with it.
If your system has sufficient memory, most reads (and stat() calls) should be served from filesystem cache, so they shouldn't incur significant I/O overhead.
You may be seeing some issues if the filesystem you're running Matrix from isn't mounted noatime or relatime, as updating the atime on files every time a read happens is an immense overhead. Can you confirm your web filesystem is mounted noatime or relatime?