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

WordPress Trac noreply at wordpress.org
Sat Apr 9 09:14:04 UTC 2016


#36455: Call opcache_reset() after plug-in, theme or core update
-----------------------------+-----------------------------
 Reporter:  nigro.simone     |      Owner:
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Upgrade/Install  |    Version:  4.4.2
 Severity:  normal           |   Keywords:
  Focuses:  performance      |
-----------------------------+-----------------------------
 wordpress it seem not reset Zend OpCache after plug-in, theme or core are
 updated.

 For solve this issue i have set in the php.ini

 {{{
 opcache.validate_timestamps=1
 }}}

 all work correctly but validate_timestamps when it's enabled, PHP will
 check the file timestamp each request with a performance degradation. When
 it's disabled, PHP files are NEVER checked for updated code. When
 wordpress updating code, new code files can get mixed with old ones, the
 results are unknown. It's unsafe as hell.

 Why wordpress not perform an opcache_reset() after each update if opcache
 is active and opcache.validate_timestamps is false?

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


More information about the wp-trac mailing list