[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:18:14 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):
The simple fix would be to update the wp_cache_delete() call within the
clean_post_cache() function to be based off of the post_id's post type.
Though this section should probably be re-factored to merge
clean_post_cache() and clean_page_cache() into one function and calling
the unique functionality through a 'clean_{$post_type}_cache' hook.
Due to the 3.1 time line, I think the simple fix should be implemented now
and we should come back to the bigger re-factoring later.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16182#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list