Answers.Body: <p>There's not a native Craft way to do that.</p>
  
  <p>You could setup a cron job that hit a <a href="http://pluginfactory.io" rel="nofollow noreferrer">plugin's</a> <a href="https://craftcms.com/docs/plugins/controllers" rel="nofollow noreferrer">controller</a> and delete items in cache based on size/date created, etc.</p>
  
  <p>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.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-11-10T08:44:47.983Z
Answers.Text: Thanks Brad - so on a vanilla Craft install, the cache folder would not grow substantially?
Answers.UserDisplayName: Richard Frank
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-11-10T23:15:30.560Z
Answers.Text: Nope. Craft only caches for 24 hour by default, so out-of-the-box it should be pretty self-sustaining.
Answers.UserDisplayName: Brad Bell
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-11-06T16:11:20.513Z
Answers.LastActivityDate: 2016-11-06T16:11:20.513Z
Answers.UserDisplayName: Brad Bell
Body: <p>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?</p>
  
  <p>Secondly, what could cause such disk usage?</p>
  
Tags: <cache><filecache>
Title: How to limit cache folder size
ThreadText: # How to limit cache folder size
  
  (Asked by: username_0 on 2016-11-06)
  
  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?
  
  **Tags:** cache, filecache
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-11-06. Score: 2 | Accepted answer
  
  There's not a native Craft way to do that.
  
  You could setup a cron job that hit a [plugin's](http://pluginfactory.io) [controller](https://craftcms.com/docs/plugins/controllers) 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.
  
  > **Comments:**
  > **username_0**: Thanks username_1 - so on a vanilla Craft install, the cache folder would not grow substantially?  
  > **username_1**: Nope. Craft only caches for 24 hour by default, so out-of-the-box it should be pretty self-sustaining.  
  
  ---
  
  