2

My runtime/cache folder is over 200GB in size. Is there a config setting or some way of limiting the size of the folder, rather than the cache duration?

Secondly, what could cause such disk usage?

2

There's not a native Craft way to do that.

You could setup a cron job that hit a plugin's controller and delete items in cache based on size/date created, etc.

My guess is you've got a plugin installed doing some heavy caching. You can try opening the largest cache files (it's all just serialized text data) and see if the type of data gives you a clue to where it's coming from.

| improve this answer | |
  • Thanks Brad - so on a vanilla Craft install, the cache folder would not grow substantially? – Richard Frank Nov 10 '16 at 8:44
  • Nope. Craft only caches for 24 hour by default, so out-of-the-box it should be pretty self-sustaining. – Brad Bell Nov 10 '16 at 23:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.