From 8e8a1ca054e5ee79b7d6b97aac38d1348c76354f Mon Sep 17 00:00:00 2001 From: Peter Fabian Date: Tue, 10 Apr 2018 12:12:51 +0200 Subject: [PATCH] Clear comment count transient when cleaning product transients --- includes/wc-product-functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/wc-product-functions.php b/includes/wc-product-functions.php index 23a8c1a7327..d25f1914d02 100644 --- a/includes/wc-product-functions.php +++ b/includes/wc-product-functions.php @@ -103,6 +103,7 @@ function wc_delete_product_transients( $post_id = 0 ) { 'wc_featured_products', 'wc_outofstock_count', 'wc_low_stock_count', + 'wc_count_comments', ); // Transient names that include an ID.