[wp-trac] [WordPress Trac] #16182: object_term_cache is never cleared for custom post types with non-shared taxonomy

WordPress Trac wp-trac at lists.automattic.com
Mon Jan 10 23:00:11 UTC 2011


#16182: object_term_cache is never cleared for custom post types with non-shared
taxonomy
--------------------------+------------------------------
 Reporter:  prettyboymp   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  3.1
 Severity:  major         |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by prettyboymp):

 Sorry for the complete typo on this:

 wp_insert_post() calls clean_post_cache() after updating the post.
 However, when clean_object_term_cache() is called, it is hard coded to
 pass in the post_type of 'post'. So the object_term_cache is never cleared
 for any taxonomies that are part of the post object type's taxonomies.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16182#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list