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):
2021-07-10 12:11:58 +02:00
help = "Clears django cache"
2019-06-08 19:30:34 +02:00
def handle(self, *args, **options):
cache.clear()