Files
zulip/zephyr/management/commands/fill_message_cache.py
Tim Abbott 47b2b1cb1c tornado: Fill the message memcached in a child process.
(imported from commit 3a7b4c0f4aad37319f4cfa7892709e99883f6a87)
2013-01-14 12:28:51 -05:00

11 lines
345 B
Python

from optparse import make_option
from django.core.management.base import BaseCommand
from zephyr.lib.message_cache import populate_message_cache
class Command(BaseCommand):
option_list = BaseCommand.option_list
help = "Populate the memcached cache of messages."
def handle(self, *args, **options):
populate_message_cache()