This commit is contained in:
Michał Pasternak 2022-08-10 22:32:23 +02:00
parent fac9f6a807
commit fa72b2771b

View file

@ -1,4 +1,3 @@
import django
from dbtemplates.conf import settings
from django.contrib.sites.models import Site
from django.core import signals
@ -11,7 +10,7 @@ def get_cache_backend():
"""
from django.core.cache import caches
cache = caches.create_connection(settings.DBTEMPLATES_CACHE_BACKEND)
# Some caches -- python-memcached in particular -- need to do a cleanup at
# the end of a request cycle. If not implemented in a particular backend
# cache.close is a no-op