[wp-trac] [WordPress Trac] #59662: Clear block theme file caches when editing the theme in the Theme File Editor

WordPress Trac noreply at wordpress.org
Tue Oct 17 17:44:55 UTC 2023


#59662: Clear block theme file caches when editing the theme in the Theme File
Editor
--------------------------+------------------------------------------
 Reporter:  flixos90      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  6.5
Component:  Themes        |    Version:  6.2
 Severity:  normal        |   Keywords:  needs-patch needs-unit-tests
  Focuses:  performance   |
--------------------------+------------------------------------------
 As originally reported as part of
 https://core.trac.wordpress.org/ticket/59633#comment:7: Certain data from
 block theme files is being cached (either via object cache or transient,
 in different use-cases).

 Any of these caches should be programmatically invalidated when editing
 the theme via the built-in Theme File Editor.

 While for regular theme development the `WP_DEVELOPMENT_MODE` constant
 (with a value of "theme") should be used, it is not reasonable to expect
 end users of WordPress that exclusively make use of the Theme File Editor
 to know about that.

 Whenever files of a theme are being edited via the Theme File Editor, any
 of these caches (introduced between WordPress 6.2 and 6.4 so far) should
 be invalidated / cleared.

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


More information about the wp-trac mailing list