clear transient

This commit is contained in:
Mike Jolley 2012-05-26 16:31:58 +01:00
parent 5a0905c903
commit 19b4d7344b
1 changed files with 3 additions and 1 deletions

View File

@ -1363,12 +1363,14 @@ class Woocommerce {
(
'_transient_wc_product_children_ids_$post_id',
'_transient_wc_product_total_stock_$post_id',
'_transient_wc_average_rating_$post_id'
'_transient_wc_average_rating_$post_id',
'_transient_wc_product_type_$post_id',
)");
} else {
$wpdb->query("DELETE FROM `$wpdb->options` WHERE `option_name` LIKE ('_transient_wc_product_children_ids_%')");
$wpdb->query("DELETE FROM `$wpdb->options` WHERE `option_name` LIKE ('_transient_wc_product_total_stock_%')");
$wpdb->query("DELETE FROM `$wpdb->options` WHERE `option_name` LIKE ('_transient_wc_average_rating_%')");
$wpdb->query("DELETE FROM `$wpdb->options` WHERE `option_name` LIKE ('_transient_wc_product_type_%')");
}
wp_cache_flush();