Add refresh cache command

This commit is contained in:
Gabriel Augendre 2023-04-02 18:33:43 +02:00
parent a13458d4ad
commit 84d003e2e0

View file

@ -0,0 +1,10 @@
from django.core.management.base import BaseCommand
from purchase.models import Cache
class Command(BaseCommand):
help = "Refresh cache" # noqa: A003
def handle(self, *args, **options): # noqa: ARG002
Cache.get_solo().refresh()