[wp-trac] [WordPress Trac] #60397: Invalidate opcache after theme / plugin updates
WordPress Trac
noreply at wordpress.org
Wed Jan 31 12:22:05 UTC 2024
#60397: Invalidate opcache after theme / plugin updates
-------------------------------------------------+-------------------------
Reporter: seebeen | Owner: seebeen
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Awaiting
| Review
Component: Upgrade/Install | Version: 6.4.2
Severity: normal | Resolution:
Keywords: needs-patch dev-feedback reporter- | Focuses:
feedback |
-------------------------------------------------+-------------------------
Changes (by swissspidy):
* keywords: needs-patch dev-feedback => needs-patch dev-feedback reporter-
feedback
* focuses: accessibility, administration =>
* severity: major => normal
Comment:
Hi there and welcome to WordPress Trac!
Is this happening with manual updates on Dashboard -> Updates or when
uploading a new ZIP file? Some steps to reproduce would be helpful.
In most places core uses its own `move_dir()` function which already does
OPcache invalidation. See `wp_opcache_invalidate_directory()` and
`wp_opcache_invalidate()`. So this kind of issue shouldn't be happening.
But if there's a place where this was forgotten, the more info we have the
better.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60397#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list