woothemes/woocommerce — pull request #5004 by splashingpixels (2014-03-01 05:23:48+00:00)
Title: recount terms when product transients are flushed see #4738

When product is updated/published, it is best to recount term. Since wc_delete_product_transients() is fired whenever that happens, I decided to piggyback that and fire the wc_do_term_recount() within it. This way we don't need to add that function again everywhere we see wc_delete_product_transients().