Skip to content

Setting opcache.validate_timestamps=0 causes all files to display "has been invalidated" #92

@pereorga

Description

@pereorga

I have the following opcache settings:

opcache.enable=1
opcache.validate_timestamps=0
opcache.enable_file_override=1
opcache.save_comments=0
opcache.file_update_protection=0

This is consistent with the stats I'm seeing:

number of cached files: 20
number of hits: 1,199,633
number of misses: 20
number of cached keys: 29

However, in the "Cached" tab, I see "has been invalidated" on every entry:

/srv/app/src/common.php
hits: 29,977, memory: 62.95KB, last used: Thu, 15 Sep 2022 11:28:46 +0000 - has been invalidated

Is that correct? My understanding is that all my files should never invalidate.

Also, could anyone confirm that the "last used" date is the date of the last hit? the screenshot included in the readme confuses me a little bit, as it has a date from 1970:

https://camo.githubusercontent.com/ceba44e11a4e8c494ccd65bb72669579e527ca115b1941153a052781c2cdc129/687474703a2f2f616d6e7574732e636f6d2f696d616765732f6f7063616368652f73637265656e73686f742f6361636865642d76332e706e67

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions