[wp-trac] [WordPress Trac] #15026: Allow update_post_caches() to cache terms for more scenario's
WordPress Trac
wp-trac at lists.automattic.com
Mon Oct 4 08:52:25 UTC 2010
#15026: Allow update_post_caches() to cache terms for more scenario's
--------------------------+-------------------------------------------------
Reporter: dd32 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.1
Component: Cache | Version:
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15026>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list