mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
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:
parent
68dd63b984
commit
284e7e3cbd
3 changed files with 16 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue