Refined changes made in r12546 to also respect the request.LANGUAGE_CODE in case the LocaleMiddleware is used to discover the language preference.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12624 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jannis Leidel 2010-03-01 10:19:01 +00:00
parent 68dd63b984
commit 284e7e3cbd
3 changed files with 16 additions and 9 deletions

View file

@ -323,10 +323,13 @@ 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>`.
include the name of the active :term:`language<language code>`.
This allows you to easily cache multilingual sites without having to create
the cache key yourself.
See :ref:`topics-i18n-deployment` for more on how Django discovers the active
language.
__ `Controlling cache: Using other headers`_
The per-view cache