alcatel/document/management/commands/clearcache.py
changeset 27 8ca7f2cea729
equal deleted inserted replaced
26:94f586daa623 27:8ca7f2cea729
       
     1 '''
       
     2 Created on 16 aout 2012
       
     3 
       
     4 @author: gerard
       
     5 '''
       
     6 from django.core.management.base import BaseCommand
       
     7 from django.core.cache import cache
       
     8 
       
     9 class Command(BaseCommand):
       
    10     def handle(self, *args, **kwargs):
       
    11         cache.clear()
       
    12         self.stdout.write('Cleared cache\n')