From 258c88a913fe1e7704cdb6f61c6ceb7493f6092a Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Fri, 22 May 2020 19:43:03 +0200 Subject: Refs #5691 -- Made cache keys independent of USE_L10N. This mostly reverts af1893c4ff8fdbf227a43a559d90bb1c1238b01a. --- docs/releases/3.2.txt | 5 +++++ docs/topics/cache.txt | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/releases/3.2.txt b/docs/releases/3.2.txt index a9e9ff662d..4308d142e8 100644 --- a/docs/releases/3.2.txt +++ b/docs/releases/3.2.txt @@ -336,6 +336,11 @@ Miscellaneous * Support for ``argon2-cffi`` < 19.1.0 is removed. +* The cache keys no longer includes the language when internationalization is + disabled (``USE_I18N = False``) and localization is enabled + (``USE_L10N = True``). After upgrading to Django 3.2 in such configurations, + the first request to any previously cached value will be a cache miss. + .. _deprecated-features-3.2: Features deprecated in 3.2 diff --git a/docs/topics/cache.txt b/docs/topics/cache.txt index 330b40dad7..cc9b22ae65 100644 --- a/docs/topics/cache.txt +++ b/docs/topics/cache.txt @@ -542,8 +542,7 @@ include the name of the active :term:`language` -- 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 ` when -:setting:`USE_L10N` is set to ``True`` and the :ref:`current time zone +Cache keys also include the :ref:`current time zone ` when :setting:`USE_TZ` is set to ``True``. __ `Controlling cache: Using other headers`_ -- cgit v1.3