[wp-trac] [WordPress Trac] #59719: Revise caching approach for theme files

WordPress Trac noreply at wordpress.org
Wed Jan 17 02:56:43 UTC 2024


#59719: Revise caching approach for theme files
-------------------------+--------------------------
 Reporter:  flixos90     |       Owner:  joemcgill
     Type:  enhancement  |      Status:  assigned
 Priority:  high         |   Milestone:  6.5
Component:  Themes       |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  2nd-opinion  |     Focuses:  performance
-------------------------+--------------------------

Comment (by flixos90):

 @spacedmonkey While the `wp_cache_themes_persistently` allows filtering
 the expiration, it primarily allows making the `themes` cache group
 persistent, so we'll probably have to decouple this and use a new filter,
 as this one does something else at the same time.

 Regarding cron cache invalidation, I don't believe this would be useful,
 given we'll put an expiration of 30 minutes on those caches anyway.

 On another note: This discussion prompted me to build a small and simple
 plugin to flush transients (most relevant for sites that don't use a
 persistent object cache): https://github.com/felixarntz/flush-transients

 This would be a simple solution for sites without a persistent object
 cache that would want to have changes immediately reflected after a
 deployment of a theme.

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


More information about the wp-trac mailing list