tabbycat/utils/management/commands/clearcache.py
from django.core.cache import cache
from django.core.management.base import BaseCommand
class Command(BaseCommand):
help = "Clears django's cache"
def handle(self, *args, **options):
cache.clear()
self.stdout.write("Cache has been cleared")