[wp-trac] [WordPress Trac] #57789: Make theme.json related caches persistent
WordPress Trac
noreply at wordpress.org
Wed Feb 22 21:33:03 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 iCaleb):
One approach could be to mainly just utilize the persistent cache only
during frontend requests (where it'd get the most performance benefit).
Each logged-in non-ajax admin requests could, at least once, always fetch
the theme.json. If there are changes from what is in the persistent cache
then it can update. As a backup (in case a theme is updated but nobody
logs in), could also do the same invalidation-checks during cron as well.
Worst case scenario: no cron is running and no admin-side log-ins are
occurring. In which case it'd just have to rely on the TTL expiring and a
frontend would have to do the work to populate the cache again.
This gives the benefits of persistent cache, while solving for
invalidation in a pretty reasonable way.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57789#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list