diff --git a/dbtemplates/utils/cache.py b/dbtemplates/utils/cache.py index ef86a53..923ee59 100644 --- a/dbtemplates/utils/cache.py +++ b/dbtemplates/utils/cache.py @@ -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