[wp-trac] Re: [WordPress Trac] #5375: wp_update_term_count cleans the cache for all taxonomies

WordPress Trac wp-trac at lists.automattic.com
Wed Nov 21 23:26:34 GMT 2007


#5375: wp_update_term_count cleans the cache for all taxonomies
------------------------+---------------------------------------------------
 Reporter:  tellyworth  |        Owner:  anonymous
     Type:  defect      |       Status:  new      
 Priority:  normal      |    Milestone:  2.5      
Component:  General     |      Version:           
 Severity:  normal      |   Resolution:           
 Keywords:              |  
------------------------+---------------------------------------------------
Comment (by ryan):

 wp_update_term_count() is passing term_taxonomy_ids to clean_term_cache(),
 not term_ids.  Taxonomy shouldn't be needed.  Passing a taxonomy to
 clean_term_cache() when tt_ids are passed in $ids will result in the wrong
 IDs being cleaned.  clean_term_cache() shouldn't clean any taxonomies not
 represented in the tt_ids being passed.  I think something else is broken
 if we're cleaning extra taxonomies.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5375#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list