mirror of
https://github.com/Crocmagnon/checkout.git
synced 2024-11-22 08:08:04 +01:00
Add refresh cache command
This commit is contained in:
parent
a13458d4ad
commit
84d003e2e0
1 changed files with 10 additions and 0 deletions
10
src/purchase/management/commands/refresh_cache.py
Normal file
10
src/purchase/management/commands/refresh_cache.py
Normal 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()
|
Loading…
Reference in a new issue