Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 4 months ago

#23206 closed task (blessed) (fixed)

Cache incrementors for wp_get_archives()

Reported by: ryan's profile ryan Owned by: ryan's profile ryan
Milestone: 3.6 Priority: normal
Severity: normal Version: 3.5
Component: Cache API Keywords: has-patch commit
Focuses: Cc:


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 11 years ago.

Download all attachments as: .zip

Change History (6)

#1 @ryan
11 years ago

  • Type changed from defect (bug) to task (blessed)

#2 @aaroncampbell
11 years ago

  • Cc aaroncampbell added

11 years ago

#4 @ryan
11 years ago

  • Keywords has-patch commit added

#5 @ryan
11 years ago

  • 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.