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