Add command for clearing the course cache
This commit is contained in:
parent
41c6346136
commit
09e22a7616
|
|
@ -0,0 +1,8 @@
|
|||
from django.core.management.base import BaseCommand
|
||||
from django.core.cache import caches
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
def handle(self, *args, **options):
|
||||
self.stdout.write("Clearing course cache")
|
||||
caches["api_page_cache"].clear()
|
||||
Loading…
Reference in New Issue