[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
Tue Jan 11 13:11:54 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):

 Adding steps to reproduce:

 1.  Create a custom post type
 2.  Create a custom taxonomy and register it to the custom post type, but
 not the normal post
 3.  Setup persistent object caching
 4.  Setup and call code that uses get_the_terms() on an instance of the
 custom post type for the custom taxonomy
 5.  Update the selected terms for the custom post through the admin
 6.  Call get_the_terms() a second time, the terms will be pulled from
 cache with the previous value.

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


More information about the wp-trac mailing list