Made the cache locale-dependant when USE_L10N is True, even if USE_I18N is False. Refs #5691.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17061 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Aymeric Augustin 2011-11-01 14:02:31 +00:00
parent 01964fd7e4
commit af1893c4ff
3 changed files with 20 additions and 6 deletions

View file

@ -498,6 +498,10 @@ include the name of the active :term:`language<language code>` -- see also
:ref:`how-django-discovers-language-preference`). This allows you to easily
cache multilingual sites without having to create the cache key yourself.
.. versionchanged:: 1.4
This also happens when :setting:`USE_L10N` is set to ``True``.
__ `Controlling cache: Using other headers`_
The per-view cache