aboutsummaryrefslogtreecommitdiffstats
path: root/servo/management
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2016-03-18 12:49:48 +0200
committerFilipp Lepalaan <filipp@mac.com>2016-03-18 12:49:48 +0200
commitd2677674eec9cebaa0748d8035cc1ac8329444e2 (patch)
treeea1475c31653ab5b7851d274c85669471aba32e9 /servo/management
parentf5ae8615a6a53bed91aabbb84276ea891fae9ca7 (diff)
downloadServo-d2677674eec9cebaa0748d8035cc1ac8329444e2.tar.gz
Servo-d2677674eec9cebaa0748d8035cc1ac8329444e2.tar.bz2
Servo-d2677674eec9cebaa0748d8035cc1ac8329444e2.zip
Clear ALL caches, not just default
Diffstat (limited to 'servo/management')
-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)