diff --git a/src/purchase/management/commands/refresh_cache.py b/src/purchase/management/commands/refresh_cache.py new file mode 100644 index 0000000..2e9ecc2 --- /dev/null +++ b/src/purchase/management/commands/refresh_cache.py @@ -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()