[wp-trac] [WordPress Trac] #56910: Improve caching in `wp_get_global_stylesheet` and `wp_get_global_styles_svg_filters` functions

WordPress Trac noreply at wordpress.org
Wed Oct 26 08:29:37 UTC 2022


#56910: Improve caching in `wp_get_global_stylesheet` and
`wp_get_global_styles_svg_filters` functions
--------------------------+-----------------------------
 Reporter:  spacedmonkey  |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:  5.9
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:  performance   |
--------------------------+-----------------------------
 The `wp_get_global_stylesheet` and `wp_get_global_styles_svg_filters`
 functions cache data in transient for 1 minute. This means that one high
 traffic sites, the cache will be warmed and performance improved. But for
 sites with lower traffic or CDN caching ( where less traffic hits the
 origin ) this cache will not be warned and performance will suffer. Global
 styles only change if the owner of the site, makes a change or a theme is
 changed. These caches should be set forever and correctly invalidated.
 This will improve performance and mean that front end users who hit a page
 will not suffer poor performance.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56910>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list