From 0aacecb74c32021bd9ccaee8e9b20b107f5c16ca Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Thu, 10 Feb 2011 13:23:24 +0000 Subject: [PATCH] Fixed #15264 -- Ensured that legacy cache backends specified using the legacy cache format continue to work. Thanks to Stephane for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15488 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/cache/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/django/core/cache/__init__.py b/django/core/cache/__init__.py index 2c75f6c671..b17ad8185a 100644 --- a/django/core/cache/__init__.py +++ b/django/core/cache/__init__.py @@ -101,6 +101,8 @@ if not settings.CACHES: engine, host, params = parse_backend_uri(settings.CACHE_BACKEND) if engine in backend_classes: engine = 'django.core.cache.backends.%s' % backend_classes[engine] + else: + engine = '%s.CacheClass' % engine defaults = { 'BACKEND': engine, 'LOCATION': host,