[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
Mon Apr 9 21:04:25 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 leewillis77):

 Hi Ryan,

 Thanks for catching my dumb error about children being ints not post
 objects.

 I was already prepping an updated patch however, as I don't think your
 assumption about child post_type being equal to parent post type is
 sensible (At least it's not true for a single one of my dev installs). The
 attached patch grabs the child's post type from the DB instead of assuming
 it matches the parents.

 It also includes your comments from #27 about leaving clean_page_cache in
 - although I've done it as a more generic clean_$post_type_cache action
 which preserves the functionality for clean_page_cache as well as offering
 more flexibility for other post types should it be required.

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


More information about the wp-trac mailing list