Wordpress LScache Plugin: Force update cache on updated custom post type
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hello! Im using the plugin on multisite. I sync changes across multiple blogs. However changes are not visible to user due to caching. Purging the caches with the API does not work however. The success message is shown, but the caches are not being refreshed. When I hit purge all in plugin, it does work. Tried this solution: https://wordpress.org/support/topic/force-clear-cache-when-product-category-updated-from-woocommerce-rest_api/ But that didnt work for me. So any suggestions? Hi, if you use this add_action( save_post_product, lscwp_purge_product, 10, 3 ) function lscwp_purge_product( $post_id) if ( defined( LSCWP_V ) ) do_action( litespeed_purge_all ) does it work ? Best regards Hi, This doesnt work either. Well, it should work but the caches are not getting cleared. If I use plugin action (admin) purge all, it works. But not using code API. Best regards Hi, no , sorry , my bad forgot to mention , you need to change save_post_product , the product to your custom type , like save_post_block , save_post_quiz ?etc Best regards, Hi, This is not resolved yet. Because it doesnt work either. It shows the success message but the caches are not getting cleared. Maybe it has to do something with the multisite? Because on main blog it is getting cleared. But not on other blog. Best regards
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference