WooCommerce Scheduled Sale




Wordpress LScache Plugin: WooCommerce Scheduled Sale

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hello, Ive found when products in WooCommerce are set with a scheduled sale price using the cron woocommerce_scheduled_sales at midnight, the cache does not clear for updated products leading to an incorrect price shown Can you please fix this function lscwp_purge_cache() if (defined(LSCWP_V)) do_action( litespeed_purge_all ) add_action( woocommerce_scheduled_sales, lscwp_purge_cache, 200 ) please try add this code to your themes functions.php , see how it goes Is it possible just to purge the product(s) that have a sale price scheduled? the document from Woo is not exactly clear on this part but can try this code add_action(woocommerce_update_product, lscwp_suppress_purge_product_update, 10, 2) function lscwp_suppress_purge_product_update($product_id, $product) if (defined(LSCWP_V)) do_action( litespeed_purge_post, $product_id ) Thanks, does this only trigger when you update a product? I dont think the scheduled sale price triggers the action woocommerce_update_product when the cron job runs well , then I am not sure , logically its kind of action that update the product property but I cant really find any useful info from Woos doc about the hook for schedule



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference