diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2011-02-10 13:23:24 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2011-02-10 13:23:24 +0000 |
| commit | 0aacecb74c32021bd9ccaee8e9b20b107f5c16ca (patch) | |
| tree | 92cde50b594627f15c145ce93f849e5b653b4287 /django/core/cache | |
| parent | 41dc3fc2e85d3c1db8c9cc4b479e3ace75d82abf (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')
| -rw-r--r-- | django/core/cache/__init__.py | 2 |
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, |
