Clear coupon cache on save

This commit is contained in:
Mike Jolley 2015-11-13 23:15:29 +00:00
parent b474dcb879
commit 7b45525dc5
1 changed files with 3 additions and 0 deletions

View File

@ -268,6 +268,9 @@ class WC_Meta_Box_Coupon_Data {
update_post_meta( $post_id, 'maximum_amount', $maximum_amount );
update_post_meta( $post_id, 'customer_email', $customer_email );
// Clear cache
WC_Cache_Helper::incr_cache_prefix( 'coupons' );
do_action( 'woocommerce_coupon_options_save', $post_id );
}
}