From af1893c4ff8fdbf227a43a559d90bb1c1238b01a Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Tue, 1 Nov 2011 14:02:31 +0000 Subject: 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 --- django/utils/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django/utils') 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 -- cgit v1.3