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

WordPress Trac noreply at wordpress.org
Wed Mar 1 14:43:34 UTC 2023


#57789: Make theme.json related caches persistent
-------------------------+--------------------------
 Reporter:  flixos90     |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  6.3
Component:  Themes       |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  performance
-------------------------+--------------------------

Comment (by spacedmonkey):

 WordPress core already has the cache group of theme. I wonder if we could
 use them. This is a special cache, that is an opt-in to `persistent`.
 [https://github.com/WordPress/wordpress-
 develop/blob/8ec9e42cc9efb0f0698c82e42abe1d6e7b9bba5e/src/wp-includes
 /class-wp-theme.php#L232-L243 See].

 This means, for site owner that have control, their can make this group
 persistent, as they can cache clear when the theme is updated. Otherwise,
 it is a non persistent groups. This could be a interesting model to
 follow, as it would allow for production sites, that hosting companies
 know are not going to change, to persistent otherwise just be an in memory
 cache.

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


More information about the wp-trac mailing list