Should opcache.validate_timestamps be enabled or disabled?
-
Hi,
I’m thinking about using Opcache on server with WordPress (only). I’m looking for advice on the validate_timestamps settings. By default it is enabled so PHP will check the file timestamp for the opcache.revaliddate_freq value.But I read somewhere that if you are updating the new code files could get mixed up with old ones so it seems a bit unsafe.
An option would be to disable opcache.revalidate_freq so PHP files are never checked for updated code. Code modifications are only run after restart of reload of PHP this way which is a bit of a hassle with for example automatic WordPress udpates.
So would enabling opcache.validate_timestamps be a problem with a server that has only wordpress sites?
- The topic ‘Should opcache.validate_timestamps be enabled or disabled?’ is closed to new replies.