[wp-trac] [WordPress Trac] #23206: Cache incrementors for wp_get_archives()
WordPress Trac
noreply at wordpress.org
Sun Jan 28 06:43:19 UTC 2024
#23206: Cache incrementors for wp_get_archives()
------------------------------+---------------------
Reporter: ryan | Owner: ryan
Type: task (blessed) | Status: closed
Priority: normal | Milestone: 3.6
Component: Cache API | Version: 3.5
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses:
------------------------------+---------------------
Comment (by askinolayim43):
We have started using one cache bucket per query with passive invalidation
controlled through a last_changed incrementor. See #22024 for an example.
We also need to do this with get_pages(), wp_get_archives(), and
elsewhere. On wordpress.com we have hacked some of these into separate
buckets because saving multiple queries per cache bucket results in huge
buckets. We have seen 72MB get_pages caches. Let's finally clean this up
for good. Some of the last_changed work done for #22176 can be used here.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/23206#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list