[wp-trac] [WordPress Trac] #58758: Cached result for wp_theme_has_theme_json() is not invalided when theme is switched dynamically

WordPress Trac noreply at wordpress.org
Mon Jul 10 16:46:24 UTC 2023


#58758: Cached result for wp_theme_has_theme_json() is not invalided when theme is
switched dynamically
--------------------------+--------------------------
 Reporter:  westonruter   |       Owner:  westonruter
     Type:  defect (bug)  |      Status:  accepted
 Priority:  normal        |   Milestone:  6.2.3
Component:  Themes        |     Version:  6.2
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  performance
--------------------------+--------------------------

Comment (by flixos90):

 @spacedmonkey I really like your solution, at least for the short term I
 think that's a clean approach. It would be great if you could add a unit
 test for it, otherwise this is good to go IMO.

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


More information about the wp-trac mailing list