<p>I assume you're referring to template caches with the <a href="http://buildwithcraft.com/docs/templating/cache" rel="nofollow">{% cache %}</a> tag.</p>

<p>If so, then yes, the <code>{% cache %}</code> tag by default will cache it's contents on a per URL and per locale basis.</p>

<p>If you use the <a href="http://buildwithcraft.com/docs/templating/cache#globally" rel="nofollow">globally</a> parameter, then it will just be on a per locale basis.</p>

CC BY-SA 3.0
2015-03-13T16:05:02.260Z
2015-03-13T16:05:02.260Z
Brad Bell
<p>Or do we need to set a specific key that includes something unique?</p>

CC BY-SA 3.0
2015-03-13T17:52:00.453Z
Take a look at the `craft_templatecaches` table in your database, specifically the `locale` column. You'll notice that every instance of caching is automatically associated with its respective locale.
Lindsey D
<localization><cache>
Are caches saved per locale by default?
# Are caches saved per locale by default?

(Asked by: username_0 on 2015-03-13)

Or do we need to set a specific key that includes something unique?

**Tags:** localization, cache

> **Comments:**
> **username_1**: Take a look at the `craft_templatecaches` table in your database, specifically the `locale` column. You'll notice that every instance of caching is automatically associated with its respective locale.  

---

## 1 answers

### Answer by username_2 on 2015-03-13. Score: 1 | Accepted answer

I assume you're referring to template caches with the [{% cache %}](http://buildwithcraft.com/docs/templating/cache) tag.

If so, then yes, the `{% cache %}` tag by default will cache it's contents on a per URL and per locale basis.

If you use the [globally](http://buildwithcraft.com/docs/templating/cache#globally) parameter, then it will just be on a per locale basis.


---

