[wp-trac] [WordPress Trac] #15565: More context for clean_post_cache()
WordPress Trac
noreply at wordpress.org
Tue Aug 13 17:12:33 UTC 2013
#15565: More context for clean_post_cache()
---------------------------------+------------------
Reporter: mdawaffe | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.7
Component: Cache | Version: 3.1
Severity: normal | Resolution:
Keywords: has-patch 3.2-early |
---------------------------------+------------------
Comment (by nacin):
It might still be helpful to include a context for some uses of
clean_post_cache(), but it no longer needs to be an array as it is no
longer called in recursive fashion.
It seems like the only context you may wish to know is comment_count.
Other kinds of cache clears (post and attachment CRUD, set_post_type(),
publishing a post) should really not be messed with. Even post
reassignments in wp_delete_user() should probably be cleared, though those
have the potential to be expensive so that might be the only other
situation where context is desired.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15565#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list