[wp-trac] [WordPress Trac] #60397: Invalidate opcache after theme / plugin updates

WordPress Trac noreply at wordpress.org
Wed Jan 31 12:29:13 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                                       |
-------------------------------------------------+-------------------------

Comment (by seebeen):

 Happening on the following places:

 * Manual plugin updates via plugin list admin page
 * Manual plugin updates via updates admin page
 * WP CLI

 I've narrowed it down even further.
 Exact combination of opcache settings is:


 {{{
 [opcache]
 opcache.enabla=1
 opcache.use_cwd=1
 opcache.enable_file_override=1
 opcache.validate_timestamps=1
 opcache.revalidate_freq=5
 opcache.revalidate_path=0
 }}}

 Any number greateer than 0 will work for revalidate_freq

 You can reproduce the bug I'm getting by setting these settings, updating
 a plugin and once you see a success notice, reload the admin page -> bam
 error 500.

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


More information about the wp-trac mailing list