manuels-scolaires/manuels/management/commands/clearcache.py
2021-07-10 12:11:58 +02:00

9 lines
209 B
Python

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()