Browse Source

Updated cache handling for Dj 1.7 #376

Rafał Pitoń 11 years ago
parent
commit
54daf261aa
1 changed files with 4 additions and 4 deletions
  1. 4 4
      misago/core/cache.py

+ 4 - 4
misago/core/cache.py

@@ -1,14 +1,14 @@
-from django.core.cache import (InvalidCacheBackendError, get_cache,
-                               cache as default_cache)
+from django.core.cache import (caches, cache as default_cache,
+                               InvalidCacheBackendError)
 
 
 try:
-    cache = get_cache('misago')
+    cache = caches['misago']
 except InvalidCacheBackendError:
     cache = default_cache
 
 
 try:
-    fpc_cache = get_cache('misago_fpc')
+    fpc_cache = caches['misago_fpc']
 except InvalidCacheBackendError:
     fpc_cache = cache