wp_update_term_count cleans the cache for all taxonomies
|Reported by:||tellyworth||Owned by:||tellyworth|
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.