Files
eggs-backend/core/http/management/commands/clearcache.py
husanjon ab73d05ecc
Some checks failed
Build and Push to Docker Hub / build-test-push (push) Failing after 1m55s
gold eggs backend
2026-04-15 08:59:36 +02:00

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")