Browse Source

Clear only specified cache please.

Rafał Pitoń 11 years ago
parent
commit
d937d663a1
1 changed files with 3 additions and 2 deletions
  1. 3 2
      misago/core/migrationutils.py

+ 3 - 2
misago/core/migrationutils.py

@@ -1,5 +1,6 @@
 from django.utils import translation
 from django.utils import translation
-from misago.core.cache import cache
+from misago.core.cache import cache as default_cache
+from misago.core.cachebuster import CACHE_KEY
 
 
 
 
 def ugettext_lazy(string):
 def ugettext_lazy(string):
@@ -26,4 +27,4 @@ def cachebuster_unregister_cache(orm, cache):
 
 
 
 
 def prune_cachebuster_cache():
 def prune_cachebuster_cache():
-    default_cache.clear()
+    default_cache.delete(CACHE_KEY)