aboutsummaryrefslogtreecommitdiffstats
path: root/servo/management
diff options
context:
space:
mode:
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)