Changing variation stock does not flush cache
-
Hello,
When one changes the stock of a variation and clicks the “Save changes” in the WooCommerce Variations tab, then the product cache is not flushed.
If the main post/product “Update” button is clicked, then the cache is flushed and the change appears in the frontend.It seems that this is quite an old issue, e.g. here and here and there are some proposed solutions, like flushing everything:
add_action( 'woocommerce_product_set_stock', 'w3tc_flush_all_custom', 999 );
add_action( 'woocommerce_variation_set_stock', 'w3tc_flush_all_custom', 999 );
function w3tc_flush_all_custom() {
w3tc_flush_all();
}Or even better, fine tune it, in order to only flush the specific product.
How is this still an issue? It seems a pretty basic bug, for it to be alive for such a long time.
Any plans of getting it fixed in next versions?Thank you and keep up the good work!
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.