Apologies of this has been asked before/elsewhere but I cannot find the answer.
We have some issues in the minute following a deploy and we think they are Opcache related. On our live setup we have the following Opcache settings:
opcache.revalidate_freq=60
opcache.validate_timestamps=1
Which of the following does PHP do?
When PHP needs a file, does it at that point check if it has been 60 seconds since it last generated a new cache of the file and if it has been more then generate a new one for this request?
Or does it run on some form of timer (or something else) where the 60 seconds is unrelated to when it last needed the file?
I'd expect option 1 but that wouldn't explain our 60 seconds or so of problems as the file path for the files is different as we deploy to an alternating A or B directory each time.
I hope that makes sense? Thanks for your help.