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

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