Comment on Django REST framework 3.15.0parentComments−JonathanBeuys2yTrue. I see a "Zend OPcache" section in my phpinfo().It says: Cache hits 4746528 Cache misses 38875 Both values go up every time I execute phpinfo().I wonder why. Shouldn't "Cache misses" only go up when a source file is changed?−raziel2p2yAFAIK, before PHP even accesses opcache for bytecode, it checks the file's metadata (last modified, most likely). So an updated file might never trigger a cache hit or miss.−JonathanBeuys2yIf it does not access the opcache, against what is it checking the last modified date?
Comments
True. I see a "Zend OPcache" section in my phpinfo().
It says:
Both values go up every time I execute phpinfo().I wonder why. Shouldn't "Cache misses" only go up when a source file is changed?
AFAIK, before PHP even accesses opcache for bytecode, it checks the file's metadata (last modified, most likely). So an updated file might never trigger a cache hit or miss.
If it does not access the opcache, against what is it checking the last modified date?