Removed some transient clears where unnecessary
This commit is contained in:
parent
3e0f6e2511
commit
3df6a71b96
|
@ -59,7 +59,6 @@ class WC_Admin_Settings {
|
||||||
do_action( 'woocommerce_update_options' );
|
do_action( 'woocommerce_update_options' );
|
||||||
|
|
||||||
// Clear any unwanted data
|
// Clear any unwanted data
|
||||||
wc_delete_product_transients();
|
|
||||||
delete_transient( 'woocommerce_cache_excluded_uris' );
|
delete_transient( 'woocommerce_cache_excluded_uris' );
|
||||||
|
|
||||||
self::add_message( __( 'Your settings have been saved.', 'woocommerce' ) );
|
self::add_message( __( 'Your settings have been saved.', 'woocommerce' ) );
|
||||||
|
|
|
@ -92,6 +92,8 @@ class WC_Product_Simple extends WC_Product {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
wc_delete_product_transients( $this->id );
|
delete_transient( 'wc_products_onsale' );
|
||||||
|
|
||||||
|
do_action( 'woocommerce_grouped_product_sync', $this->id, $children_by_price );
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -547,10 +547,9 @@ class WC_Product_Variable extends WC_Product {
|
||||||
|
|
||||||
// The VARIABLE PRODUCT price should equal the min price of any type
|
// The VARIABLE PRODUCT price should equal the min price of any type
|
||||||
update_post_meta( $product_id, '_price', $min_price );
|
update_post_meta( $product_id, '_price', $min_price );
|
||||||
|
delete_transient( 'wc_products_onsale' );
|
||||||
|
|
||||||
do_action( 'woocommerce_variable_product_sync', $product_id, $children );
|
do_action( 'woocommerce_variable_product_sync', $product_id, $children );
|
||||||
|
|
||||||
wc_delete_product_transients( $product_id );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue