aboutsummaryrefslogtreecommitdiffstats
path: root/servo/management/commands/clearcache.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2016-05-01 23:54:58 +0300
committerFilipp Lepalaan <filipp@mac.com>2016-05-01 23:54:58 +0300
commit47cc21441b437fe148c72bd181059728b47bdf9b (patch)
treecd96c0a704cb31837c6e0b2e9affe998d24acd7b /servo/management/commands/clearcache.py
parent65df597329bbb602dd382695c639aab3776123ea (diff)
parent82e1fe63447f5c4d33d8a3ed7c365e7eab1006c0 (diff)
downloadServo-47cc21441b437fe148c72bd181059728b47bdf9b.tar.gz
Servo-47cc21441b437fe148c72bd181059728b47bdf9b.tar.bz2
Servo-47cc21441b437fe148c72bd181059728b47bdf9b.zip
Merge branch 'develop'
Diffstat (limited to 'servo/management/commands/clearcache.py')
-rw-r--r--servo/management/commands/clearcache.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/servo/management/commands/clearcache.py b/servo/management/commands/clearcache.py
index 7c00ef4..ce96459 100644
--- a/servo/management/commands/clearcache.py
+++ b/servo/management/commands/clearcache.py
@@ -1,12 +1,15 @@
# -*- coding: utf-8 -*-
-from django.core.cache import cache
+from django.core.cache import caches
from django.core.management.base import BaseCommand
class Command(BaseCommand):
- help = "Clears this install's cache"
+ help = "Clears this install's caches"
def handle(self, *args, **options):
- cache.clear()
+ for c in caches.all():
+ c.clear()
+
+ exit(0)