<p>Yea I would like to see some more static in memory/file store as well (as plug or native) -> Page needs 1.7 secs for first byte..really wanna push that down to 150ms or so.</p>

<p>Not everyone can put varnish or fastly before the page :)</p>

CC BY-SA 3.0
2014-09-26T05:59:40.877Z
2014-09-26T05:59:40.877Z
nexflo
<p>Currently, the template {% cache %} tag can only cache to the database. </p>

<p>See Brandon's comment <a href="https://craftcms.stackexchange.com/questions/105/what-are-the-best-practices-for-using-the-cache-tag/107#107">here</a> ("Template caches always go to the database").</p>

CC BY-SA 3.0
2014-08-22T16:28:47.317Z
Shame as I don't think a MySQL database is necessarily the best storage for this sort of thing. Be good if it became a configurable option in the future.
GlennJ
CC BY-SA 3.0
2014-08-22T17:18:41.610Z
Absolutely agree with you on that. :)
André Elvan
CC BY-SA 3.0
2014-08-21T14:41:54.463Z
2014-08-21T14:48:05.230Z
2014-08-21T14:48:05.230Z
André Elvan
<p>I can see that normal caching can have it's storage specified, but I would specifically like to be able to set the caching storage method for the template tag {% cache %}.</p>

<p>At the moment it appears to be hitting our MySQL database very hard and so I would like to consider using something like Redis instead.</p>

<templating><cache><caching>
Template caching tag storage options
# Template caching tag storage options

(Asked by: username_0 on 2014-08-21)

I can see that normal caching can have it's storage specified, but I would specifically like to be able to set the caching storage method for the template tag {% cache %}.

At the moment it appears to be hitting our MySQL database very hard and so I would like to consider using something like Redis instead.

**Tags:** templating, cache, caching


---

## 2 answers

### Answer by username_2 on 2014-08-21. Score: 4 | Accepted answer

Currently, the template {% cache %} tag can only cache to the database.

See Brandon's comment [here](https://craftcms.stackexchange.com/questions/105/what-are-the-best-practices-for-using-the-cache-tag/107#107) ("Template caches always go to the database").

> **Comments:**
> **username_0**: Shame as I don't think a MySQL database is necessarily the best storage for this sort of thing. Be good if it became a configurable option in the future.  
> **username_2**: Absolutely agree with you on that. :)  

---

### Answer by username_1 on 2014-09-26. Score: 0

Yea I would like to see some more static in memory/file store as well (as plug or native) -> Page needs 1.7 secs for first byte..really wanna push that down to 150ms or so.

Not everyone can put varnish or fastly before the page :)


---

