Answers.Body: <p>The easiest thing is to look it up. Craft CMS is usually really self-explaining So when you take a look at your folders in <code>craft/storage/runtime/temp</code> you'll see the following</p>
  
  <pre><code>/assets &lt;- for example cached thumbnails/preview icons and all those things
  /cache
  /compiled_templates &lt;- templates that have cache tags, that should only compiled once... for example static pages that does not change that much
  /HTML &lt;-- mostly some json objects
  /logs &lt;-- well seems obvious
  /state &lt;-- Yii.CSecurityManager.validationkey a json object
  </code></pre>
  
  <p>The <code>compiled_templates</code> folder could become huge when you messed around with <code>cache</code> tags too much or if you have a really large site.
  <code>assets</code> will grow when you insert many assets.</p>
  
  <p>The purpose of this folder is to make Craft CMS faster because it does not have to generate HTML, thumbnails and so on with every page refresh, instead it uses already generated files. </p>
  
  <p>How big is this folder for you? Does it require too much space?</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-02-12T21:36:35.577Z
Answers.Text: Related: https://craftcms.com/docs/folder-structure#craft-storage
Answers.UserDisplayName: Brad Bell
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-02-13T13:14:44.877Z
Answers.Text: The site I am managing is pretty big and has lots of assets.  but those assets are actually stored on amazon.  so space for assets is not a problem.
  
  The temp folder used to get very big and take the website down by running out of space.  but then i added a cron job to cleare the temp folder form time to time.   after that I didn't have any issues.
  
  But recently the site went down and when i looked in the temp folder there was  around 180GB one gif file.    That was so strange , thats why I was wondering what exactly does craft store in temp folder.
Answers.UserDisplayName: Jahanzeb Khan
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-02-13T13:21:31.437Z
Answers.Text: If it's really 180GB it's maybe a bug. You should contact Pixel and Tonic and report that.
Answers.UserDisplayName: Robin Schambach
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-02-12T13:19:26.947Z
Answers.LastActivityDate: 2018-02-12T13:19:26.947Z
Answers.UserDisplayName: Robin Schambach
Body: <p>What files does Craft store in <code>craft/storage/runtime/temp</code> folder.
  And what is the purpose of it.
  And how to stop it form getting huge.</p>
  
Tags: <cache><storage>
Title: What files does Craft store in "craft/storage/runtime/temp"
ThreadText: # What files does Craft store in "craft/storage/runtime/temp"
  
  (Asked by: username_0 on 2018-02-12)
  
  What files does Craft store in `craft/storage/runtime/temp` folder.
  And what is the purpose of it.
  And how to stop it form getting huge.
  
  **Tags:** cache, storage
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-02-12. Score: 1
  
  The easiest thing is to look it up. Craft CMS is usually really self-explaining So when you take a look at your folders in `craft/storage/runtime/temp` you'll see the following
  
  ```
  /assets <- for example cached thumbnails/preview icons and all those things
  /cache
  /compiled_templates <- templates that have cache tags, that should only compiled once... for example static pages that does not change that much
  /HTML <-- mostly some json objects
  /logs <-- well seems obvious
  /state <-- Yii.CSecurityManager.validationkey a json object
  
  ```
  
  The `compiled_templates` folder could become huge when you messed around with `cache` tags too much or if you have a really large site.
  `assets` will grow when you insert many assets.
  
  The purpose of this folder is to make Craft CMS faster because it does not have to generate HTML, thumbnails and so on with every page refresh, instead it uses already generated files.
  
  How big is this folder for you? Does it require too much space?
  
  > **Comments:**
  > **username_2**: Related: https://craftcms.com/docs/folder-structure#craft-storage  
  > **username_0**: The site I am managing is pretty big and has lots of assets.  but those assets are actually stored on amazon.  so space for assets is not a problem.  The temp folder used to get very big and take the website down by running out of space.  but then i added a cron job to cleare the temp folder form time to time.   after that I didn't have any issues.  But recently the site went down and when i looked in the temp folder there was  around 180GB one gif file.    That was so strange , thats why I was wondering what exactly does craft store in temp folder.  
  > **username_1**: If it's really 180GB it's maybe a bug. You should contact Pixel and Tonic and report that.  
  
  ---
  
  