Clear counts cache when updating product attributes

Closes #17377
This commit is contained in:
Mike Jolley 2017-10-26 20:16:52 +01:00
parent 87c6ca5ae0
commit 08c4953b61
1 changed files with 1 additions and 0 deletions

View File

@ -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 );
delete_transient( 'wc_layered_nav_counts' );
}
}