Swift is flooding my hosting/server storage space and my cache size is growing rapidly

You are here:
  • KB Home
  • Caching
  • Swift is flooding my hosting/server storage space and my cache size is growing rapidly
Estimated reading time: 1 min
The average size of a cached page should be about 200-400Kb. That means if you have 1.000 pages the normal cache size will be about 200-400 Mb.

This usually happens if there are a very large number of pages or if there is a dynamic part in JS or CSS – some themes/plugins creates dynamic js and that is why the folder is filled up.

Be sure to manually remove the entire contents of the cache folder and do the following steps:
a) enable separate CSS (styles) and separate JS (Scripts) in Optimization settings:
Settings > Optimization > Scripts: Separate Scripts
Settings > Optimization > Styles: Separate Styles

b) exclude unnecessary post types: autoconfig should find most and exclude them automatically but you can add them manually: Settings > Caching > Exceptions> Exclude Post Types

Afterwards rebuild the cache and see if the problem is solved.

If you still don’t have enough space for this you should maybe consider to exclude some pages from cache, or upgrade to a larger hosting package.
Was this article helpful?
Dislike 0 4 of 4 found this article helpful.
Views: 364