[wp-trac] [WordPress Trac] #36455: Call opcache_reset() after plug-in, theme or core update

WordPress Trac noreply at wordpress.org
Fri May 12 18:57:26 UTC 2017


#36455: Call opcache_reset() after plug-in, theme or core update
-------------------------------------------------+--------------------
 Reporter:  nigro.simone                         |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  4.8.1
Component:  Upgrade/Install                      |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  2nd-opinion has-patch needs-testing  |     Focuses:
-------------------------------------------------+--------------------

Comment (by mikeschroder):

 Just took a look at [attachment:36455.4.diff] .

 Thinking we should still clear when `opcache.validate_timestamps = 1`,
 because this means that opcache checks the timestamps, but the
 invalidation only happens every `opcache.revalidate_freq` seconds, so we
 may still have invalid items in the cache:
 http://php.net/manual/en/opcache.configuration.php#ini.opcache.validate-
 timestamps

 I'd be interested to know about what happens there is an invalidation
 attempt and `opcache.restrict_api` restricts this.  Namely, is there a way
 to catch failure rather than checking beforehand using `ini_get()`?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36455#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list