Add clear_cache management command

This commit is contained in:
badblocks 2025-04-03 22:12:15 -07:00
parent fa4f38301b
commit c68d1fb5ec

View file

@ -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')