diff options
Diffstat (limited to 'django/utils')
| -rw-r--r-- | django/utils/cache.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/cache.py b/django/utils/cache.py index 71c091ee18..be4fa58645 100644 --- a/django/utils/cache.py +++ b/django/utils/cache.py @@ -158,7 +158,7 @@ def has_vary_header(response, header_query): def _i18n_cache_key_suffix(request, cache_key): """If enabled, returns the cache key ending with a locale.""" - if settings.USE_I18N: + if settings.USE_I18N or settings.USE_L10N: # first check if LocaleMiddleware or another middleware added # LANGUAGE_CODE to request, then fall back to the active language # which in turn can also fall back to settings.LANGUAGE_CODE |
