Title: huge lsw cache
Last modified: June 16, 2025

---

# huge lsw cache

 *  Resolved [eurologon](https://wordpress.org/support/users/eurologon/)
 * (@eurologon)
 * [1 year ago](https://wordpress.org/support/topic/lsw/)
 * Hi Support,
   We noticed that the cache in lsws/cachedata/priv takes up a lot of
   space, even if we have inserted a TT of 1 or 2 days.
 * This is our report number: Last Report Number: **CGHKZKTV**
   Thanks a lot
    -  This topic was modified 1 year ago by [eurologon](https://wordpress.org/support/users/eurologon/).

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Support [litetim](https://wordpress.org/support/users/litetim/)
 * (@litetim)
 * [1 year ago](https://wordpress.org/support/topic/lsw/#post-18513970)
 * [@eurologon](https://wordpress.org/support/users/eurologon/) 
   I am sorry for 
   you problem.Looking over the settings I see you have this setting on: [https://docs.litespeedtech.com/lscache/lscwp/pageopt/#js-combine-external-and-inline](https://docs.litespeedtech.com/lscache/lscwp/pageopt/#js-combine-external-and-inline)
   Is your folder: **public_html/wp-content/litespeed/js** big in size too?
 *  Thread Starter [eurologon](https://wordpress.org/support/users/eurologon/)
 * (@eurologon)
 * [1 year ago](https://wordpress.org/support/topic/lsw/#post-18513982)
 * Hi,
   the size is 24MB. I have to turn off the “js-combine-external-and-inline”
   option?Thanks.
 *  Plugin Support [litetim](https://wordpress.org/support/users/litetim/)
 * (@litetim)
 * [1 year ago](https://wordpress.org/support/topic/lsw/#post-18514159)
 * [@eurologon](https://wordpress.org/support/users/eurologon/) Folder: **sws/cachedata/
   priv** which is the biggest size folder?
 *  Thread Starter [eurologon](https://wordpress.org/support/users/eurologon/)
 * (@eurologon)
 * [1 year ago](https://wordpress.org/support/topic/lsw/#post-18514306)
 * 24G priv
   Inside “priv” they are all 1.5GB
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [1 year ago](https://wordpress.org/support/topic/lsw/#post-18514673)
 * this usually happens becomes of 2 things , or combine of these 2 things
    1. some bot scrape over your sites very aggressively
    2. your site has a lot of query strings , for example `/prodotti/basi/?c=basi-complete;
       basi-speciali` there will be literally millions of different combination of 
       these query strings that each will generate one cache file , so in total , sum
       up a lot of spaces
 * to address this , I’d suggest to check the access log , if there is such query
   string being access, suggest to set them to no-cache
 * or if it was bot to scraping the site , suggest to either block them or mark 
   as no-cache
 * or simplest way , set up a system cron job to periodically check the size and
   empty the lscache directory if needed
 * more detail: [https://docs.litespeedtech.com/lscache/lscwp/troubleshoot/#lscache-directory-too-big](https://docs.litespeedtech.com/lscache/lscwp/troubleshoot/#lscache-directory-too-big)
 *  Thread Starter [eurologon](https://wordpress.org/support/users/eurologon/)
 * (@eurologon)
 * [1 year ago](https://wordpress.org/support/topic/lsw/#post-18517408)
 * Thank you very much for your suggestion. We have set up a script to empty the
   lscache directory

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘huge lsw cache’ is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [eurologon](https://wordpress.org/support/users/eurologon/)
 * Last activity: [1 year ago](https://wordpress.org/support/topic/lsw/#post-18517408)
 * Status: resolved