From 5441e361675653074494df1403807f686e742415 Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Fri, 13 Sep 2013 15:53:17 -0400 Subject: [PATCH] Bulk update messages in deprecated cache when updating message (imported from commit 5e68e4eec83c0ed02b9997b0cb3f93ce8f0a7fdd) --- zerver/lib/actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerver/lib/actions.py b/zerver/lib/actions.py index 7b28ed73f9..42d3578b4f 100644 --- a/zerver/lib/actions.py +++ b/zerver/lib/actions.py @@ -1304,7 +1304,7 @@ def do_update_message(user_profile, message_id, subject, propagate_mode, content event['message_ids'] = [] for changed_message in changed_messages: event['message_ids'].append(changed_message.id) - cache_save_message(changed_message) + items_for_memcached[message_cache_key(changed_message.id)] = (changed_message,) items_for_memcached[to_dict_cache_key(changed_message, True)] = \ (stringify_message_dict(changed_message.to_dict_uncached(apply_markdown=True)),) items_for_memcached[to_dict_cache_key(changed_message, False)] = \