10 lines
No EOL
302 B
Python
10 lines
No EOL
302 B
Python
from django.core.cache import cache
|
|
from django.core.management.base import BaseCommand
|
|
|
|
|
|
class Command(BaseCommand):
|
|
help = "Clears the entire Django cache."
|
|
|
|
def handle(self, *args, **options):
|
|
cache.clear()
|
|
self.stdout.write(self.style.SUCCESS("Cache cleared successfully.")) |