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

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


#50354: Call opcache_invalidate() 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 nextendweb):

 Replying to [comment:2 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?

 Yes, your patch fixes these too.

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


More information about the wp-trac mailing list