Merge pull request #17400 from woocommerce/fix/17377
Clear counts cache when updating product attributes
This commit is contained in:
commit
2d08ea7d15
|
@ -696,6 +696,7 @@ class WC_Product_Data_Store_CPT extends WC_Data_Store_WP implements WC_Object_Da
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
update_post_meta( $product->get_id(), '_product_attributes', $meta_values );
|
update_post_meta( $product->get_id(), '_product_attributes', $meta_values );
|
||||||
|
delete_transient( 'wc_layered_nav_counts' );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue