1 | | 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. |
| 1 | **Update:** Originally this ticket also covered the `wp_get_global_styles_svg_filters` function which is subject to a similar change, but since that is a separate effort it makes sense to break it out in a separate ticket. |
| 2 | |
| 3 | 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. |