Cache is purged on draft edit




Wordpress LScache Plugin: Cache is purged on draft edit

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi, I found out that cached pages only last for few minutes instead of up to 23 hours. In debug.purge.log I found this kind of action: 01/29/20 14:08:58.512 [172.68.214.130:24142 1 a08] ------POST HTTP/1.1 (HTTPS) /wp-admin/post.php 01/29/20 14:08:58.512 [172.68.214.130:24142 1 a08] Query String: 01/29/20 14:08:58.512 [172.68.214.130:24142 1 a08] HTTP_REFERER: https://xxxxx.com/wp-admin/post.php?post=154271&action=edit ... 01/29/20 14:08:58.513 [172.68.214.130:24142 1 a08] X-LiteSpeed-Purge: public,stale,c4a_Po.154271,c4a_URL.6666cd76f96956469e7be39d750cc7d9,c4a_W.recent-posts-2,c4a_Po.150452,c4a_FD,c4a_REST => LSC->send_headers()@680 => WP_Hook->apply_filters()@288 => WP_Hook->do_action()@312 => /var/www/xxxxx.com/wp-includes/load.php@478 Post IDs are always drafts. I even disabled all purging on publish/update but still all cache is purged via these. Any solution to this? This behaviour makes LS Cache almost useless because its high traffic site and multiple users edit drafts all the time. And when every 2-5 minutes all cached pages are purged its problem. Just found that commenting edit_post/save_post in the /inc/purge.class.php does the trick. Definitely bug! Hi, Yes, I have managed to reproduce this , will report back to developer for further analyzes Best regards, I am facing a similar problem. Im running a shop with WooCommerce, which uses posts to represent orders. As they are orders, they often change status, items added or removed. All these events trigger edit_post and save_post, so the cache is constantly being purged. Not entirely sure if this is a bug or simply a bad assumption. What I would suggest is expose those events in the settings panel, so that we can choose which one we want. Alternatively, add a filter in there, so that plugins or custom code can hook in to determine if purge is required. As I saw on the Slack its problem only on the OLS due some recent-post tag. Hope that in update it will be fixed. Hi, Will add bypass on OLS recent post tag if detected. Best regards,



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



Reference