Wordpress LScache Plugin: How to purge cache when a post turn to draft?
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hi This great plugin: https://wordpress.org/plugins/post-expiration-date/ turn to draft a post that was published. But the post still visible everywhere after goes to draft. So how purge the cache when a post changed from Publish to Draft? Thanks Hi I hack the PHP code of the plugin to move to trash the post at the expiration date, but the cache is not purged? So I added this: if (method_exists( LiteSpeed_Cache_API, purge_all ) && LiteSpeed_Cache_API::purge_all() ) LiteSpeed_Cache_API::purge_all() It works but the whole cache is purged >> How to purge only a specific page? Maybe with? if (method_exists( LiteSpeed_Cache_API, purge_post ) == TRUE) LiteSpeed_Cache_API::purge_post( $post_id ) Thank you Hi, could you please join our Slack channel or submit a ticket here for helping us to reproduce the issue, thanks! Hi done: https://store.litespeedtech.com/store/viewticket.php?tid=671264&c=IDU3gpK8 Thanks
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference