mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 02:48:00 +00:00
Our previous code could in theory end up clearing the caches it had just filled, if Tornado's cache filling work happened to be faster than the memcached flush. (imported from commit 48174aadad398fb7a7c917a1df765c1261b12a55)
11 lines
345 B
Python
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()
|