Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#15026 closed defect (bug) (fixed)

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

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

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
16 years ago

  • Resolutionfixed
  • Status newclosed

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

Note: See TracTickets for help on using tickets.