[wp-trac] [WordPress Trac] #36455: Call opcache_reset() after plug-in, theme or core update
WordPress Trac
noreply at wordpress.org
Sat Mar 7 02:55:18 UTC 2020
#36455: Call opcache_reset() after plug-in, theme or core update
-------------------------------------------+---------------------------
Reporter: nigro.simone | Owner: mikeschroder
Type: enhancement | Status: assigned
Priority: normal | Milestone: 5.5
Component: Upgrade/Install | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-testing early | Focuses:
-------------------------------------------+---------------------------
Changes (by jnylen0):
* keywords: needs-patch => has-patch needs-testing early
Comment:
attachment:36455.6.2.diff is a preliminary patch that calls
`opcache_invalidate()` on PHP files as they are written.
So far we've done some light testing on this using the ClassicPress
migration plugin. If you're having trouble reproducing this issue
otherwise, this is a good way to test because many files are changed when
moving from WP to CP. More info here:
https://github.com/ClassicPress/ClassicPress/pull/567
This still needs more testing, for example with `opcache.restrict_api` set
(though if this is just a normal PHP warning then the `@` operator seems
like an appropriate choice), and with plugin/theme updates.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36455#comment:58>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list