From 2164e138e32cf8b00a0e43025c64150ec1238cf8 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Tue, 23 Feb 2010 20:45:28 +0000 Subject: 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 --- docs/topics/cache.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs') 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`. +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 -- cgit v1.3