[wp-trac] [WordPress Trac] #50354: Call opcache_reset() after saving PHP files in Theme/Plugin editor

WordPress Trac noreply at wordpress.org
Thu Jun 18 12:38:19 UTC 2020


#50354: Call opcache_reset() after saving PHP files in Theme/Plugin editor
----------------------------+------------------------------
 Reporter:  nextendweb      |       Owner:  (none)
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+------------------------------

Comment (by mikeschroder):

 Hi @nextendweb!

 I believe core runs `opcache_invalidate()` on files
 [https://github.com/wordpress/wordpress-develop/blob/master/src/wp-
 admin/includes/file.php#L501 that are written] with the plugin or theme
 editors.

 The
 [https://core.trac.wordpress.org/attachment/ticket/36455/36455.12.2.diff
 current patch] for #36455 replaces those two calls with the new function
 we're working on there.

 Do you think more needs to be done than that?

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


More information about the wp-trac mailing list