Answers.Body: <p>The <code>{% cache %}</code> tag will only write to the database.</p>
  
  <p>You don't provide many details, so all I can do is offer some general advice.</p>
  
  <p>I'd double check how you're using the <code>{% cache %}</code> and make sure that you're not over-caching your data or caching lots of static data that might not need it.</p>
  
  <p>You can always through something like <a href="https://www.varnish-cache.org/" rel="nofollow">Varnish</a>/<a href="https://www.fastly.com/" rel="nofollow">Fastly</a> in front of Craft to help with template caching.</p>
  
  <p>You can tell Craft to use things like memcache with the <a href="http://buildwithcraft.com/docs/config-settings#cacheMethod" rel="nofollow">cacheMethod</a> config setting, but that only affects Craft's non-template data caches.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-27T14:49:01.820Z
Answers.Text: Hi Thanks Brad, We have  had a look at Fastly and Varnish and will probably go that route.
Answers.UserDisplayName: IColorfield
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-24T18:44:09.247Z
Answers.LastActivityDate: 2015-04-24T18:44:09.247Z
Answers.UserDisplayName: Brad Bell
Body: <p>We just have experienced a massive hit (traffic) on our site due to a campaign and have noticed that the craft caching solution is not really working well for the templates/html. We are wondering if there is anything else and how we can set it up to cache to MEMCACHED or any other system instead of the database.</p>
  
  <p>I found some interesting posts on <a href="https://craftcms.stackexchange.com/questions/2464/is-there-a-way-to-override-the-template-caching-system">Is there a way to override the template caching system?</a></p>
  
  <p>Thanks!</p>
  
  <p>PS also the render controller is not performing and is taking over 1s to complete. Any suggestions.</p>
  
Tags: <cache>
Title: Caching and Rendering
ThreadText: # Caching and Rendering
  
  (Asked by: username_0 on 2015-04-24)
  
  We just have experienced a massive hit (traffic) on our site due to a campaign and have noticed that the craft caching solution is not really working well for the templates/html. We are wondering if there is anything else and how we can set it up to cache to MEMCACHED or any other system instead of the database.
  
  I found some interesting posts on [Is there a way to override the template caching system?](https://craftcms.stackexchange.com/questions/2464/is-there-a-way-to-override-the-template-caching-system)
  
  Thanks!
  
  PS also the render controller is not performing and is taking over 1s to complete. Any suggestions.
  
  **Tags:** cache
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-04-24. Score: 1
  
  The `{% cache %}` tag will only write to the database.
  
  You don't provide many details, so all I can do is offer some general advice.
  
  I'd double check how you're using the `{% cache %}` and make sure that you're not over-caching your data or caching lots of static data that might not need it.
  
  You can always through something like [Varnish](https://www.varnish-cache.org/)/[Fastly](https://www.fastly.com/) in front of Craft to help with template caching.
  
  You can tell Craft to use things like memcache with the [cacheMethod](http://buildwithcraft.com/docs/config-settings#cacheMethod) config setting, but that only affects Craft's non-template data caches.
  
  > **Comments:**
  > **username_0**: Hi Thanks username_1, We have  had a look at Fastly and Varnish and will probably go that route.  
  
  ---
  
  