diff options
| author | Claude Paroz <claude@2xlibre.net> | 2020-05-22 19:43:03 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-06-22 10:55:12 +0200 |
| commit | 258c88a913fe1e7704cdb6f61c6ceb7493f6092a (patch) | |
| tree | bb3e4e00bfeb8209c1c9ce68fa40c30ea3e6004f /docs | |
| parent | e37f80961884c686802a5822ce09f24d8a27920f (diff) | |
Refs #5691 -- Made cache keys independent of USE_L10N.
This mostly reverts af1893c4ff8fdbf227a43a559d90bb1c1238b01a.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/3.2.txt | 5 | ||||
| -rw-r--r-- | docs/topics/cache.txt | 3 |
2 files changed, 6 insertions, 2 deletions
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<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`_ |
