[wp-trac] [WordPress Trac] #57789: Make theme.json related caches persistent

WordPress Trac noreply at wordpress.org
Wed Sep 20 21:41:49 UTC 2023


#57789: Make theme.json related caches persistent
---------------------------------------+--------------------------
 Reporter:  flixos90                   |       Owner:  joemcgill
     Type:  enhancement                |      Status:  assigned
 Priority:  normal                     |   Milestone:  6.4
Component:  Themes                     |     Version:
 Severity:  normal                     |  Resolution:
 Keywords:  gutenberg-merge has-patch  |     Focuses:  performance
---------------------------------------+--------------------------

Comment (by flixos90):

 I just opened the above PR https://github.com/WordPress/wordpress-
 develop/pull/5267 as another idea I had the other idea: While we can't
 easily cache `theme.json` data persistently because filters don't fire, we
 can easily cache the most low-level part of it which is the JSON-decoding
 of the actual files.

 Caching just that part itself already has a notable positive performance
 impact for sites that use a persistent object cache. Please see the PR
 description for more context.

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


More information about the wp-trac mailing list