Wordpress LScache Plugin: force clear cache when product/category updated from woocommerce rest_api
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hello! Im using the plugin with a woocommerce store. The products and categories are added/updated from woocommerce Rest Api. I found this issue: when you make a post to change only the images, the cache dont are clear. If I change the description, or other attribute with the new imagens, the cache are cleared. Hi, maybe you can try this , add to your themes functions.php add_action( save_post_product, lscwp_purge_product, 10, 3 ) function lscwp_purge_product( $post_id) if ( defined( LSCWP_V ) ) do_action( litespeed_purge_post, $post_id ) Best regards, Worked, but I have to use this hooks: woocommerce_update_product, woocommerce_new_product!
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference