Some checks failed
Build and Push to Docker Hub / build-test-push (push) Failing after 1m55s
17 lines
329 B
Python
Executable File
17 lines
329 B
Python
Executable File
"""
|
|
Clear cache command
|
|
"""
|
|
|
|
from django.core.cache import cache
|
|
from django.core.management import BaseCommand
|
|
|
|
from core.utils import console
|
|
|
|
|
|
class Command(BaseCommand):
|
|
help = "Clear all caches"
|
|
|
|
def handle(self, *args, **options):
|
|
cache.clear()
|
|
console.Console.success("Cache cleared successfully")
|