WordPress.org

Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#23206 closed task (blessed) (fixed)

Cache incrementors for wp_get_archives()

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

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

Download all attachments as: .zip

Change History (6)

#1 @ryan
9 years ago

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

#2 @aaroncampbell
9 years ago

  • Cc aaroncampbell added

@ryan
9 years ago

#4 @ryan
9 years ago

  • Keywords has-patch commit added

#5 @ryan
9 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.