gold eggs backend
Some checks failed
Build and Push to Docker Hub / build-test-push (push) Failing after 1m55s
Some checks failed
Build and Push to Docker Hub / build-test-push (push) Failing after 1m55s
This commit is contained in:
16
core/http/management/commands/clearcache.py
Executable file
16
core/http/management/commands/clearcache.py
Executable file
@@ -0,0 +1,16 @@
|
||||
"""
|
||||
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")
|
||||
Reference in New Issue
Block a user