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
This commit is contained in:
Russell Keith-Magee 2011-02-10 13:23:24 +00:00
parent 41dc3fc2e8
commit 0aacecb74c
1 changed files with 2 additions and 0 deletions

View File

@ -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,