1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Refs #5691 -- Made cache keys independent of USE_L10N.

This mostly reverts af1893c4ff.
This commit is contained in:
Claude Paroz
2020-05-22 19:43:03 +02:00
committed by Mariusz Felisiak
parent e37f809618
commit 258c88a913
4 changed files with 16 additions and 22 deletions

View File

@@ -542,8 +542,7 @@ 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.
Cache keys also include the active :term:`language <language code>` when
:setting:`USE_L10N` is set to ``True`` and the :ref:`current time zone
Cache keys also include the :ref:`current time zone
<default-current-time-zone>` when :setting:`USE_TZ` is set to ``True``.
__ `Controlling cache: Using other headers`_