[wp-trac] [WordPress Trac] #51686: Not invalidating files in opcode cache after core update
WordPress Trac
noreply at wordpress.org
Thu Feb 4 00:19:15 UTC 2021
#51686: Not invalidating files in opcode cache after core update
-----------------------------------------+------------------------------
Reporter: Krstarica | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upgrade/Install | Version: 5.5
Severity: normal | Resolution:
Keywords: reporter-feedback has-patch | Focuses:
-----------------------------------------+------------------------------
Comment (by stodorovic):
It looks that ''version.php'' isn't invalidated because it isn't copied
until everything else is verified. The function ''copy_dir'' invalidates
other files, but ''version.php'' is still cached (because it's copied
later with different method) . I've created PR 976:
[https://github.com/WordPress/wordpress-develop/pull/976] which will
invalidate ''version.php'' from OPcache.
For testing, it's enough to add following line into ''php.ini'':
{{{
opcache.validate_timestamps = 0
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51686#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list