[wp-trac] [WordPress Trac] #19690: wp_suspend_cache_additions() doesn't block term_relationships being added to cache
WordPress Trac
wp-trac at lists.automattic.com
Sun Apr 8 09:03:04 UTC 2012
#19690: wp_suspend_cache_additions() doesn't block term_relationships being added
to cache
--------------------------+-----------------------
Reporter: leewillis77 | Owner: ryan
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 3.4
Component: Cache | Version: 3.3
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+-----------------------
Comment (by duck_):
Replying to [comment:21 leewillis77]:
> For bonus points we could probably deprecate clean_page_cache, by adding
an additional
>
> do_action('clean_'.$post_type.'_cache', $id);
>
> inside clean_post_cache(), but not sure if that's desirable?
That's not a bad idea, but the patch as it is cannot drop the special
handling for pages because clean_page_cache() clears the "all_page_ids"
and "get_pages" keys. We would also need to move cleaning of those into
clean_post_cache() inside an if-statement, or hook into the proposed
action with a callback.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19690#comment:22>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list