summaryrefslogtreecommitdiff
path: root/django/core/cache/__init__.py
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2011-02-10 13:23:24 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2011-02-10 13:23:24 +0000
commit0aacecb74c32021bd9ccaee8e9b20b107f5c16ca (patch)
tree92cde50b594627f15c145ce93f849e5b653b4287 /django/core/cache/__init__.py
parent41dc3fc2e85d3c1db8c9cc4b479e3ace75d82abf (diff)
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
Diffstat (limited to 'django/core/cache/__init__.py')
-rw-r--r--django/core/cache/__init__.py2
1 files changed, 2 insertions, 0 deletions
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,