clear transient
This commit is contained in:
parent
5a0905c903
commit
19b4d7344b
|
@ -1363,12 +1363,14 @@ class Woocommerce {
|
||||||
(
|
(
|
||||||
'_transient_wc_product_children_ids_$post_id',
|
'_transient_wc_product_children_ids_$post_id',
|
||||||
'_transient_wc_product_total_stock_$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 {
|
} 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_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_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_average_rating_%')");
|
||||||
|
$wpdb->query("DELETE FROM `$wpdb->options` WHERE `option_name` LIKE ('_transient_wc_product_type_%')");
|
||||||
}
|
}
|
||||||
|
|
||||||
wp_cache_flush();
|
wp_cache_flush();
|
||||||
|
|
Loading…
Reference in New Issue