alcatel/document/management/commands/clearcache.py
changeset 27 8ca7f2cea729
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/alcatel/document/management/commands/clearcache.py	Thu Jan 24 16:58:55 2013 +0100
@@ -0,0 +1,12 @@
+'''
+Created on 16 aout 2012
+
+@author: gerard
+'''
+from django.core.management.base import BaseCommand
+from django.core.cache import cache
+
+class Command(BaseCommand):
+    def handle(self, *args, **kwargs):
+        cache.clear()
+        self.stdout.write('Cleared cache\n')
\ No newline at end of file