Wordpress LScache Plugin: Puge of transients not being cleared
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hi We have been using Lightspeed successfully on our site. however, we have an issue where the transients and building up in the database until we are forced to clear them. The TTL is set to a week and should clear it, could this be a cron issue? I checked the documentaion and can see on here https://docs.litespeedtech.com/lscache/lscwp/troubleshoot/ Look for two headings: cache-control: no-cache, must-revalidate, max-age=0 expires: Wed, 11 Jan 1984 05:00:00 GMT We have both of these and turned off the opcache in the meantime. Although i cant see any diffrence. heres some debug log.. 10/25/21 08:20:32.606 [174.129.151.113:52618 1 gQm] ??POST HTTP/1.1 (HTTPS) / 10/25/21 08:20:32.606 [174.129.151.113:52618 1 gQm] Query String: wc-ajax=apply_coupon 10/25/21 08:20:32.606 [174.129.151.113:52618 1 gQm] HTTP_REFERER: https://www.domain.co.uk/cart/ 10/25/21 08:20:32.699 [82.132.244.162:53849 1 I0j] [Ctrl] X Cache_control init on 10/25/21 08:20:32.861 [82.132.244.162:53849 1 I0j] [Vary] Rest API init disabled vary change 10/25/21 08:20:35.193 [174.129.151.113:52618 1 gQm] [Ctrl] X Cache_control -> stale 10/25/21 08:20:35.546 [82.132.244.162:53849 1 I0j] [Ctrl] not cacheable before ctrl finalize 10/25/21 08:20:35.547 [82.132.244.162:53849 1 I0j] [Router] get_role: shop_manager 10/25/21 08:20:35.547 [82.132.244.162:53849 1 I0j] [Vary] vary cookies changed by filter litespeed_vary_curr_cookies ? wp-postpass_b6d1cc7eeef6ac0b7b42a0545823813c 10/25/21 08:20:35.547 [82.132.244.162:53849 1 I0j] X-LiteSpeed-Cache-Control: no-cache 10/25/21 08:20:35.547 [82.132.244.162:53849 1 I0j] X-LiteSpeed-Vary: cookie=wp-postpass_b6d1cc7eeef6ac0b7b42a0545823813c 10/25/21 08:20:35.548 [82.132.244.162:53849 1 I0j] End response ??????????????????????????? 10/25/21 08:20:36.047 [174.129.151.113:52618 1 gQm] [Router] get_role: 10/25/21 08:20:37.644 [109.70.148.36:47656 1 3GM] ??POST HTTP/1.1 (HTTPS) /wp-cron.php 10/25/21 08:20:37.644 [109.70.148.36:47656 1 3GM] Query String: doing_wp_cron=1635150037.4042539596557617187500 10/25/21 08:20:37.644 [109.70.148.36:47656 1 3GM] HTTP_REFERER: https://www.domain.co.uk/wp-cron.php?doing_wp_cron=1635150037.4042539596557617187500 10/25/21 08:20:38.518 [174.129.151.113:52618 1 gQm] [Tag] Add ? HTTP.200 10/25/21 08:20:38.518 [174.129.151.113:52618 1 gQm] [Ctrl] X Cache_control init on 10/25/21 08:20:39.183 [174.129.151.113:52618 1 gQm] [Tag] Add ? HTTP.200 10/25/21 08:20:39.505 [174.129.151.113:52618 1 gQm] [Tag] Add ? HTTP.200 10/25/21 08:20:39.506 [174.129.151.113:52618 1 gQm] [Ctrl] X Cache_control -> private ( cache cart ) 10/25/21 08:20:39.506 [174.129.151.113:52618 1 gQm] [Ctrl] X Cache_control off ? not GET method:POST 10/25/21 08:20:39.506 [174.129.151.113:52618 1 gQm] [Ctrl] X Cache_control -> no Cache 10/25/21 08:20:39.506 [174.129.151.113:52618 1 gQm] [Router] get_role: 10/25/21 08:20:39.506 [174.129.151.113:52618 1 gQm] [Vary] role id: failed, guest 10/25/21 08:20:39.506 [174.129.151.113:52618 1 gQm] [Router] get_role: 10/25/21 08:20:39.538 [174.129.151.113:52618 1 gQm] [Ctrl] forced no cache [reason] DONOTCACHEPAGE const 10/25/21 08:20:39.538 [174.129.151.113:52618 1 gQm] [Core] Silence Comment due to REST/AJAX 10/25/21 08:20:39.538 [174.129.151.113:52618 1 gQm] X-LiteSpeed-Cache-Control: no-cache 10/25/21 08:20:39.538 [174.129.151.113:52618 1 gQm] End response ??????????????????????????? 10/25/21 08:20:39.698 [109.70.148.36:47656 1 3GM] [Ctrl] X Cache_control -> stale 10/25/21 08:20:40.054 [82.132.244.162:35849 1 dqi] ??GET HTTP/1.1 (HTTPS) /wp-json/wc-analytics/admin/notes 10/25/21 08:20:40.054 [82.132.244.162:35849 1 dqi] Query String: page=1&per_page=25&status=unactioned&type%5B0%5D=info&type%5B1%5D=marketing&type%5B2%5D=survey&type%5B3%5D=warning&orderby=date&order=desc&_locale=user 10/25/21 08:20:40.054 [82.132.244.162:35849 1 dqi] HTTP_REFERER: https://www.domain.co.uk/wp-admin/edit.php?post_type=shop_order 10/25/21 08:20:40.054 [82.132.244.162:35849 1 dqi] Cookie _lscache_vary: admin_bar:1 logged-in:1 10/25/21 08:20:40.125 [82.132.244.162:58615 1 5IX] ??GET HTTP/1.1 (HTTPS) /wp-json/wc-admin/options 10/25/21 08:20:40.125 [82.132.244.162:58615 1 5IX] Query String: options=woocommerce_ces_tracks_queue&_locale=user 10/25/21 08:20:40.125 [82.132.244.162:58615 1 5IX] HTTP_REFERER: https://www.domain.co.uk/wp-admin/edit.php?post_type=shop_order 10/25/21 08:20:40.125 [82.132.244.162:58615 1 5IX] Cookie _lscache_vary: admin_bar:1 logged-in:1 10/25/21 08:20:40.127 [174.129.151.113:52618 1 G89] ??POST HTTP/1.1 (HTTPS) /cart/ 10/25/21 08:20:40.127 [174.129.151.113:52618 1 G89] Query String: 10/25/21 08:20:40.127 [174.129.151.113:52618 1 G89] HTTP_REFERER: https://www.domain.co.uk/cart/ 10/25/21 08:20:40.154 [82.132.244.162:55673 1 GMs] ??GET HTTP/1.1 (HTTPS) /wp-json/wc-admin/options 10/25/21 08:20:40.154 [82.132.244.162:55673 1 GMs] Query String: options=woocommerce_task_list_hidden%2Cwoocommerce_extended_task_list_hidden%2Cwoocommerce_task_list_dismissed_tasks%2Cwoocommerce_task_list_complete%2Cwoocommerce_task_list_tracked_completed_tasks&_locale=user 10/25/21 08:20:40.154 [82.132.244.162:55673 1 GMs] HTTP_REFERER: https://www.domain.co.uk/wp-admin/edit.php?post_type=shop_order 10/25/21 08:20:40.154 [82.132.244.162:55673 1 GMs] Cookie _lscache_vary: admin_bar:1 logged-in:1 10/25/21 08:20:40.239 [82.132.244.162:58151 1 Uki] ??POST HTTP/1.1 (HTTPS) /wp-admin/admin-ajax.php 10/25/21 08:20:40.239 [82.132.244.162:58151 1 Uki] Query String: 10/25/21 08:20:40.239 [82.132.244.162:58151 1 Uki] HTTP_REFERER: https://www.domain.co.uk/wp-admin/edit.php?post_type=shop_order 10/25/21 08:20:40.239 [82.132.244.162:58151 1 Uki] Cookie _lscache_vary: admin_bar:1 logged-in:1 10/25/21 08:20:40.326 [82.132.244.162:59133 1 U7U] ??GET HTTP/1.1 (HTTPS) /wp-json/wc-analytics/admin/notes 10/25/21 08:20:40.326 [82.132.244.162:59133 1 U7U] Query String: page=1&per_page=25&type=error%2Cupdate&status=unactioned&_locale=user 10/25/21 08:20:40.326 [82.132.244.162:59133 1 U7U] HTTP_REFERER: https://www.domain.co.uk/wp-admin/edit.php?post_type=shop_order 10/25/21 08:20:40.326 [82.132.244.162:59133 1 U7U] Cookie _lscache_vary: admin_bar:1 logged-in:1 10/25/21 08:20:40.474 [109.70.148.36:47656 1 3GM] [Router] get_role: 10/25/21 08:20:40.523 [109.70.148.36:47656 1 3GM] [Optm] init 10/25/21 08:20:41.734 [82.132.244.162:55673 1 GMs] [Ctrl] X Cache_control -> stale 10/25/21 08:20:41.787 [82.132.244.162:59133 1 U7U] [Ctrl] X Cache_control -> stale 10/25/21 08:20:41.828 [174.129.151.113:52618 1 G89] [Ctrl] X Cache_control -> stale 10/25/21 08:20:41.893 [82.132.244.162:35849 1 dqi] [Ctrl] X Cache_control -> stale 10/25/21 08:20:41.924 [82.132.244.162:58615 1 5IX] [Ctrl] X Cache_control -> stale 10/25/21 08:20:42.025 [82.132.244.162:58151 1 Uki] [Ctrl] X Cache_control -> stale 10/25/21 08:20:42.089 [109.70.148.36:47656 1 3GM] [Img_Optm] cron_pull running 10/25/21 08:20:42.096 [109.70.148.36:47656 1 3GM] [Img_Optm] no need pull [tag] 9 10/25/21 08:20:42.207 [82.132.244.162:59133 1 U7U] [Ctrl] X Cache_control -> private ( logged in user ) 10/25/21 08:20:42.207 [82.132.244.162:59133 1 U7U] [Router] get_role: shop_manager 10/25/21 08:20:42.299 [82.132.244.162:55673 1 GMs] [Ctrl] X Cache_control -> private ( logged in user ) 10/25/21 08:20:42.300 [82.132.244.162:55673 1 GMs] [Router] get_role: shop_manager 10/25/21 08:20:42.327 [82.132.244.162:35849 1 dqi] [Ctrl] X Cache_control -> private ( logged in user ) 10/25/21 08:20:42.334 [82.132.244.162:35849 1 dqi] [Router] get_role: shop_manager 10/25/21 08:20:42.392 [174.129.151.113:52618 1 G89] [Router] get_role: 10/25/21 08:20:42.474 [174.129.151.113:52618 1 G89] [Optm] init 10/25/21 08:20:42.500 [109.70.148.36:47656 1 3GM] [Ctrl] not cacheable before ctrl finalize 10/25/21 08:20:42.500 [109.70.148.36:47656 1 3GM] [Router] get_role: 10/25/21 08:20:42.500 [109.70.148.36:47656 1 3GM] [Vary] role id: failed, guest 10/25/21 08:20:42.500 [109.70.148.36:47656 1 3GM] [Router] get_role: 10/25/21 08:20:42.500 [109.70.148.36:47656 1 3GM] [Router] get_role: 10/25/21 08:20:42.500 [109.70.148.36:47656 1 3GM] X-LiteSpeed-Cache-Control: no-cache 10/25/21 08:20:42.500 [109.70.148.36:47656 1 3GM] [Optm] bypass: Not frontend HTML type 10/25/21 08:20:42.500 [109.70.148.36:47656 1 3GM] End response ??????????????????????????? },{ Hi, no , transient doesn?t have cron job , nor controlled by cache TTL it will always build up by WordPress more ref: https://wordpress.stackexchange.com/questions/6602/are-transients-garbage-collected Best regards,
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference