Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#15026 closed defect (bug) (fixed)

Allow update_post_caches() to cache terms for more scenario's

Reported by: dd32's profile dd32 Owned by:
Milestone: 3.1 Priority: normal
Severity: normal Version:
Component: Cache API Keywords:
Focuses: Cc:

Description

At present, update_post_caches() can only update the term cache if a specific set of characteristics is met, Unfortunately, presently it's limited to caching if the query was for a single post type AND specified as such.

Scenario's which do not match:

  • Array of post_type's (eg: posts & notes in a loop)
  • When 'any' post_type is specified (for certain Archives, eg, Search & Term Archives)

The following commit takes advantage of update_object_term_cache()'s ability to receive multiple post types. in the case of the 'any' post type, it uses the post types from the provided posts.

Change History (1)

#1 @dd32
14 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [15700]) Cache terms under more scenario's in update_post_caches(). Fixes #15026

Note: See TracTickets for help on using tickets.