Wordpress LScache Plugin: Heartbeat API During Edit Post Purging Cache
Last Updated on: Wed, 15 Apr 2026 00:00:02 I noticed today that if somebody is editing a post, everytime the heartbeat API kicks in and saves the revision the cache is getting purged. Heres my debug purge log. 01/22/20 15:34:21.811 [IP:59628 1 rqa] ------POST HTTP/1.1 (HTTPS) /wp-admin/admin-ajax.php 01/22/20 15:34:21.811 [IP:59628 1 rqa] Query String: 01/22/20 15:34:21.811 [IP:59628 1 rqa] HTTP_REFERER: https://www.mydomain.com/wp-admin/post.php?post=657511&action=edit 01/22/20 15:34:21.811 [IP:59628 1 rqa] Cookie _lscache_vary: 55682a4558986990f9719b089f1558ca 01/22/20 15:34:21.811 [IP:59628 1 rqa] LSCACHE_VARY_COOKIE: wp-postpass_ebe22d7c64425a55f2e00a919e580cb0 01/22/20 15:34:21.812 [IP:59628 1 rqa] X-LiteSpeed-Purge: public,stale,9c5_Po.657511,9c5_URL.6666cd76f96956469e7be39d750cc7d9,9c5_W.recent-posts-1,9c5_Po.657509,9c5_T.80,9c5_T.173,9c5_T.48,9c5_T.1,9c5_A.3,9c5_PT.post,9c5_F,9c5_H,9c5_PGS,9c5_PGSRP,9c5_D.202001,9c5_REST => LSC->send_headers()@680 => WP_Hook->apply_filters()@288 => WP_Hook->do_action()@312 => /var/www/vhosts/mydomain.com/wp-includes/load Any way to stop this? If somebody edits a post for a while my cache is continually getting purged. Hi @thekendog, normally heartbeat will not purge the cache. Seems theres a plugin calling the purge hook, could you please provide?your Report Number, found in?WP Admin > LiteSpeed Cache > Report. UJROEIMF Hi, we believe this could be the same issue on save-draft will cause the cache purge. we will investigate it. Best regards, Hi, Apologize for late response. Upon the investigation on the other similar issue , about the save-draft-cause-purge and from your log X-LiteSpeed-Purge: public,stale,9c5_Po.657511,9c5_URL.6666cd76f96956469e7be39d750cc7d9,9c5_W.recent-posts-1,9c5_Po.657509,9c5_T.80,9c5_T.173,9c5_T.48,9c5_T.1,9c5_A.3,9c5_PT.post,9c5_F,9c5_H,9c5_PGS,9c5_PGSRP,9c5_D.202001,9c5_REST The cause I think it due to recent post widget. Could you please try enable ESI and set recent post widget to ESI block and see how it goes ? Best regards,
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference