mirror of
https://github.com/django/django.git
synced 2024-12-01 15:42:04 +01:00
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
2
django/core/cache/__init__.py
vendored
2
django/core/cache/__init__.py
vendored
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user