diff --git a/accounts/management/commands/clear_cache.py b/accounts/management/commands/clear_cache.py new file mode 100644 index 0000000..8c6863f --- /dev/null +++ b/accounts/management/commands/clear_cache.py @@ -0,0 +1,7 @@ +from django.core.management.base import BaseCommand +from django.core.cache import cache + +class Command(BaseCommand): + def handle(self, *args, **kwargs): + cache.clear() + self.stdout.write('Cleared cache\n') \ No newline at end of file