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:
parent
41dc3fc2e8
commit
0aacecb74c
|
@ -101,6 +101,8 @@ if not settings.CACHES:
|
||||||
engine, host, params = parse_backend_uri(settings.CACHE_BACKEND)
|
engine, host, params = parse_backend_uri(settings.CACHE_BACKEND)
|
||||||
if engine in backend_classes:
|
if engine in backend_classes:
|
||||||
engine = 'django.core.cache.backends.%s' % backend_classes[engine]
|
engine = 'django.core.cache.backends.%s' % backend_classes[engine]
|
||||||
|
else:
|
||||||
|
engine = '%s.CacheClass' % engine
|
||||||
defaults = {
|
defaults = {
|
||||||
'BACKEND': engine,
|
'BACKEND': engine,
|
||||||
'LOCATION': host,
|
'LOCATION': host,
|
||||||
|
|
Loading…
Reference in New Issue