TabbycatDebate/tabbycat

View on GitHub
tabbycat/utils/management/commands/clearcache.py

Summary

Maintainability
A
0 mins
Test Coverage
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")