Removed some transient clears where unnecessary

This commit is contained in:
Mike Jolley 2014-06-19 11:40:33 +01:00
parent 3e0f6e2511
commit 3df6a71b96
3 changed files with 5 additions and 5 deletions

View File

@ -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' ) );

View File

@ -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 );
} }
} }

View File

@ -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 );
} }
} }
} }