[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
Fri Jul 7 18:23:02 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 westonruter):
After digging into the history a bit: originally object caching was used
when this function was first introduced in [55086] by @hellofromTonya.
However, the object caching was reverted in [55092] due to object cache
not being available in `wp-admin/load-styles.php`. So then the static
variable approach was settled on in [55138].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58758#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list