Commits

Hynek Cernoch committed 27d482f

Fixed CacheNotRespondingError when used DummyCache backend. Closes #6

  • Participants
  • Parent commits c43ad66

Comments (0)

Files changed (1)

keyedcache/__init__.py

     if CACHE_TIMEOUT == 0:
         log.warn("disabling the cache system because TIMEOUT=0")
         
-    _CACHE_ENABLED = CACHE_TIMEOUT > 0
+    _CACHE_ENABLED = CACHE_TIMEOUT > 0 and not cache.__module__.endswith('dummy')
 
     if not cache.key_prefix and (hasattr(settings, 'CACHE_PREFIX') or settings.SITE_ID != 1):
         if hasattr(settings, 'CACHE_PREFIX'):