Cache gets purged constantly




Wordpress LScache Plugin: Cache gets purged constantly

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi, I have a problem that the cache seems to be purged at very short intervals. Ive enabled debug logging and checking the debug.purge log. I see a lot of these two type of messages: 12/15/21 15:29:02.097 [195.58.113.67:63431 1 ql4] ??POST HTTP/1.1 (HTTPS) /wp-json/wc/v2/orders/63441/notes 12/15/21 15:29:02.097 [195.58.113.67:63431 1 ql4] Query String: consumer_key=x&consumer_secret=x 12/15/21 15:29:02.097 [195.58.113.67:63431 1 ql4] Cookie: 12/15/21 15:29:02.098 [195.58.113.67:63431 1 ql4] X-LiteSpeed-Purge: public,stale,3a6_FD,3a6_W.recent-comments-2 private,3a6_W.recent-comments-2 => LiteSpeed LSC->send_headers()@552 => WP_Hook->apply_filters(,ARRAY)@303 => WP_Hook->do_action(ARRAY)@327 => /wp/wp-includes/load.php@470 12/15/21 14:43:58.697 [91.201.60.17:33740 1 8me] ------POST HTTP/1.1 (HTTPS) /wp-cron.php 12/15/21 14:43:58.697 [91.201.60.17:33740 1 8me] Query String: doing_wp_cron=1639579433.4083750247955322265625 12/15/21 14:43:58.697 [91.201.60.17:33740 1 8me] HTTP_REFERER: https://flowneuroscience.com/wp-cron.php?doing_wp_cron=1639579433.4083750247955322265625 12/15/21 14:43:58.697 [91.201.60.17:33740 1 8me] Cookie: 12/15/21 14:43:58.698 [91.201.60.17:33740 1 8me] X-LiteSpeed-Purge: public,stale,3a6_ private,3a6_W.recent-comments-2 => LiteSpeed LSC->send_headers()@552 => WP_Hook->apply_filters(,ARRAY)@303 => WP_Hook->do_action(ARRAY)@327 => /home/flovvtes/public_html/wp2/wp-includes/load.php@470 How to interpret these? It seems like the cache is purged when a Woocommerce order note is added and when some cron job is run? Why? Does X-LiteSpeed-Purge: public,stale,3a6_ private,3a6_W.recent-comments-2 mean that the public and stale and private cache is purged? The page I need help with: https://flowneuroscience.com/ Hi, X-LiteSpeed-Purge: public,stale,3a6_ private,3a6_W.recent-comments-2 this means , pubilic cache with tag 3a6_ (which is literally every page contains this tag) , and private cache with that W.recent-comments-2 , are purged what do you mean by order note ? Best regards, In Woocommerce orders can have notes. These are small pieces of information attached to an order and are normally only shown in the admin GUI. The request POST HTTP/1.1 (HTTPS) /wp-json/wc/v2/orders/63441/notes adds a private note to the order 63441. I dont understand why this would purge any cache. My suspicion is that this could cause our cache to purge when it should not, since we have 3rd party integrations that add notes to order now and then. What does public,stale,3a6_FD,3a6_W.recent-comments-2 private,3a6_W.recent-comments-2 mean? Regarding 3a6_, where does this tag come from? What does it represent? How can I see which pages have this tag? In addition the order note post purge there is this cron job you see above that purges 3a6_. Do you have any idea what this is? It seems to be running every hour or so. Digging a bit more I see that the cron jobs are woocommerce_scheduled_subscription_payment_retry. This is a paymenet retry from the Woocommerce Subscriptions plugin. It looks like this: 12/17/21 08:33:53.459 [91.201.60.17:47438 1 HxG] ------POST HTTP/1.1 (HTTPS) /wp-cron.php 12/17/21 08:33:53.459 [91.201.60.17:47438 1 HxG] Query String: doing_wp_cron=1639730029.4312500953674316406250 12/17/21 08:33:53.459 [91.201.60.17:47438 1 HxG] HTTP_REFERER: https://flowneuroscience.com/wp-cron.php?doing_wp_cron=1639730029.4312500953674316406250 12/17/21 08:33:53.459 [91.201.60.17:47438 1 HxG] Cookie: 12/17/21 08:33:53.460 [91.201.60.17:47438 1 HxG] X-LiteSpeed-Purge: public,stale,3a6_FD,3a6_W.recent-comments-2,3a6_Po.63214,3a6_URL./,3a6_W.recent-posts-2,3a6_F,3a6_H,3a6_PGS,3a6_REST private,3a6_W.recent-comments-2 => LiteSpeed LSC->send_headers()@552 => WP_Hook->apply_filters(,ARRAY)@303 => WP_Hook->do_action(ARRAY)@327 => /home/flovvtes/public_html/wp2/wp-includes/load.php@470 If I understand everything correctly 3a6_F this means that the front page of the site is purge when there is a payment retry?? yes , _F is the front page what exactly does that woocommerce_scheduled_subscription_payment_retry do ? like if it updates some post or something ? In Woocommerce each order is a post. This cron job retries the payment of a subscription order. It will add some information to the order, so in some sense it is updating a post but this should not affect the front page in any way what so ever. It would only affect logged in pages of Wooc customers (private cache), API calls, and the admin interface. Is there anyway I can block the purge due to these events? I also see that some part of the cache is purged when we add notes to an order: 12/20/21 00:04:12.007 [54.171.34.131:41550 1 kHn] ------POST HTTP/1.1 (HTTPS) /wp-json/wc/v3/subscriptions/58888/notes 12/20/21 00:04:12.007 [54.171.34.131:41550 1 kHn] Query String: 12/20/21 00:04:12.007 [54.171.34.131:41550 1 kHn] Cookie: 12/20/21 00:04:12.007 [54.171.34.131:41550 1 kHn] X-LiteSpeed-Purge: public,3a6_FD,3a6_W.recent-comments-2 private,3a6_W.recent-comments-2 => LiteSpeed LSC->send_headers()@552 => WP_Hook->apply_filters(,ARRAY)@303 => WP_Hook->do_action(ARRAY)@327 => /home/flovvtes/public_html/wp2/wp-includes/load.php@470 What is purged here? $exclude_url_list = array( cron , wp-json ) foreach ($exclude_url_list as $exclude_url) if (strpos($_SERVER[REQUEST_URI], $exclude_url) !== FALSE) ob_start( function($buffer) @header(X-LiteSpeed-Purge: nothing) return $buffer ) try add ithis into your themes functions.php , this should suppress all purge call when request uri contains cron and wp-json the log will still show , but the server should only see nothing tag What do you mean by the log will still show? , but the server should only see nothing tag I still see log entries like this: 01/29/22 22:19:12.498 [34.244.18.16:35832 1 jNM] ??POST HTTP/1.1 (HTTPS) ?/shop/wp-json/wc/v3/subscriptions/66797/notes 01/29/22 22:19:12.498 [34.244.18.16:35832 1 jNM] Query String: 01/29/22 22:19:12.498 [34.244.18.16:35832 1 jNM] User Agent: python-requests/2.25.1 01/29/22 22:19:12.498 [34.244.18.16:35832 1 jNM] Accept: / 01/29/22 22:19:12.498 [34.244.18.16:35832 1 jNM] Accept Encoding: gzip, deflate 01/29/22 22:19:12.498 [34.244.18.16:35832 1 jNM] Cookie: 01/29/22 22:19:12.498 [34.244.18.16:35832 1 jNM] X-LSCACHE: true 01/29/22 22:19:12.498 [34.244.18.16:35832 1 jNM] LSCACHE_VARY_COOKIE: _lscache_vary_shop 01/29/22 22:19:12.499 [34.244.18.16:35832 1 jNM] X-LiteSpeed-Purge: public,stale,54d_FD => LiteSpeed LSC->send_headers()@558 => WP_Hook->apply_filters(,ARRAY)@303 => WP_Hook->do_action(ARRAY)@327 => /home/flovvtes/public_html/shop/wp-includes/load.php@470 and 01/29/22 22:41:58.018 [91.201.60.17:54960 1 l7i] ??POST HTTP/1.1 (HTTPS) ?/shop/wp-cron.php 01/29/22 22:41:58.018 [91.201.60.17:54960 1 l7i] Query String: doing_wp_cron=1643496111.7711660861968994140625 01/29/22 22:41:58.018 [91.201.60.17:54960 1 l7i] HTTP_REFERER: https://flowneuroscience.com/shop/wp-cron.php?doing_wp_cron=1643496111.7711660861968994140625 01/29/22 22:41:58.018 [91.201.60.17:54960 1 l7i] User Agent: WordPress/5.8.3 https://flowneuroscience.com/shop 01/29/22 22:41:58.018 [91.201.60.17:54960 1 l7i] Accept: / 01/29/22 22:41:58.018 [91.201.60.17:54960 1 l7i] Accept Encoding: deflate, gzip 01/29/22 22:41:58.018 [91.201.60.17:54960 1 l7i] Cookie: 01/29/22 22:41:58.018 [91.201.60.17:54960 1 l7i] X-LSCACHE: true 01/29/22 22:41:58.018 [91.201.60.17:54960 1 l7i] LSCACHE_VARY_COOKIE: _lscache_vary_shop 01/29/22 22:41:58.018 [91.201.60.17:54960 1 l7i] X-LiteSpeed-Purge: public,stale,54d_FD => LiteSpeed LSC->send_headers()@558 => WP_Hook->apply_filters(ARRAY)@303 => WP_Hook->do_action(ARRAY)@327 => /home/flovvtes/public_html/shop/wp-includes/load.php@470 Ive verified?that your script is running. Any update on this? Were you ever able to get this resolved?



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



Reference