Opened 4 months ago

Closed 4 months ago

#23206 closed task (blessed) (fixed)

Cache incrementors for wp_get_archives()

Reported by: ryan Owned by: ryan
Priority: normal Milestone: 3.6
Component: Cache Version: 3.5
Severity: normal Keywords: has-patch commit
Cc: aaroncampbell

Description

Make use of a caching incrementor and store queries in individual cache buckets to avoid memory exhaustion.

Pattern this after #23167, which does the same thing for get_pages().

See #23173 for an explanation of the motivation behind this.

Attachments (1)

23206.diff (8.7 KB) - added by ryan 4 months ago.

Download all attachments as: .zip

Change History (6)

  • Type changed from defect (bug) to task (blessed)
  • Cc aaroncampbell added

ryan4 months ago

  • Keywords has-patch commit added
  • Owner set to ryan
  • Resolution set to fixed
  • Status changed from new to closed

In 23385:

In wp_get_archives(), cache queries to individual cache buckets instead of storing them in one cached array. Use incrementor style passive cache invalidation.

fixes #23206
see #23173

Note: See TracTickets for help on using tickets.