manuels-scolaires/manuels/management/commands/clearcache.py

10 lines
209 B
Python
Raw Normal View History

2019-06-08 19:30:34 +02:00
from django.core.cache import cache
from django.core.management import BaseCommand
class Command(BaseCommand):
help = 'Clears django cache'
def handle(self, *args, **options):
cache.clear()