summaryrefslogtreecommitdiff
path: root/docs/topics
diff options
context:
space:
mode:
authorJannis Leidel <jannis@leidel.info>2010-02-23 20:45:28 +0000
committerJannis Leidel <jannis@leidel.info>2010-02-23 20:45:28 +0000
commit2164e138e32cf8b00a0e43025c64150ec1238cf8 (patch)
treeb7849ff42df5104e0994a5f2949d8577743f643d /docs/topics
parent6ba5fb37287ab88e2039d754e89788bb864ee123 (diff)
Fixed #5691 - Adds the active language to the cache key. Thanks, Antoni Aloy, Ramiro Morales and Yann Malet.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12546 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/topics')
-rw-r--r--docs/topics/cache.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/topics/cache.txt b/docs/topics/cache.txt
index f8c9870462..dc450ae1fc 100644
--- a/docs/topics/cache.txt
+++ b/docs/topics/cache.txt
@@ -320,6 +320,13 @@ time, rather than ``CACHE_MIDDLEWARE_SECONDS``. Using the decorators in
the ``never_cache`` decorator). See the `using other headers`__ section for
more on these decorators.
+.. versionadded:: 1.2
+
+If :setting:`USE_I18N` is set to ``True`` then the generated cache key will
+include the name of the currently active :term:`language<language code>`.
+This allows you to easily cache multilingual sites without having to create
+the cache key yourself.
+
__ `Controlling cache: Using other headers`_
The per-view cache