Add admin command to flush the staticfiles cache

This commit is contained in:
Calen Pennington
2013-02-04 13:46:17 -05:00
parent 8592db92bf
commit ae5d3cbc57
3 changed files with 13 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
###
### Script for importing courseware from XML format
###
from django.core.management.base import NoArgsCommand
class Command(NoArgsCommand):
help = \
'''Import the specified data directory into the default ModuleStore'''
def handle_noargs(self):
staticfiles_cache = get_cache('staticfiles')
staticfiles_cache.clear()