From a0e05f972ef28c1f6fa64936f6d4753543846532 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Tue, 12 Feb 2019 11:57:56 +0000 Subject: [PATCH] These transient no longer exist --- includes/class-wc-post-data.php | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/includes/class-wc-post-data.php b/includes/class-wc-post-data.php index 5893b789179..7cd0df1098c 100644 --- a/includes/class-wc-post-data.php +++ b/includes/class-wc-post-data.php @@ -131,23 +131,7 @@ class WC_Post_Data { * Delete product view transients when needed e.g. when post status changes, or visibility/stock status is modified. */ public static function delete_product_query_transients() { - // Increments the transient version to invalidate cache. WC_Cache_Helper::get_transient_version( 'product_query', true ); - - // If not using an external caching system, we can clear the transients out manually and avoid filling our DB. - if ( ! wp_using_ext_object_cache() ) { - global $wpdb; - - $wpdb->query( - " - DELETE FROM `$wpdb->options` - WHERE `option_name` LIKE ('\_transient\_wc\_uf\_pid\_%') - OR `option_name` LIKE ('\_transient\_timeout\_wc\_uf\_pid\_%') - OR `option_name` LIKE ('\_transient\_wc\_products\_will\_display\_%') - OR `option_name` LIKE ('\_transient\_timeout\_wc\_products\_will\_display\_%') - " - ); - } } /**