Commit ae5d3cbc by Calen Pennington

Add admin command to flush the staticfiles cache

parent 8592db92
###
### 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()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment