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

WordPress Trac wp-trac at lists.automattic.com
Wed Nov 21 02:58:31 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      |    Keywords:           
------------------------+---------------------------------------------------
 wp_update_term_count() doesn't pass the taxonomy name on to
 clean_term_cache().  This causes clean_term_cache() to run some
 unnecessary queries and clear the cache for all taxonomies, not just the
 one with the updated count.

 The enclosed patch fixes this.  It reduces import queries by a few percent
 and might help speed up post saving slightly.

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


More information about the wp-trac mailing list