Bulk update messages in deprecated cache when updating message

(imported from commit 5e68e4eec83c0ed02b9997b0cb3f93ce8f0a7fdd)
This commit is contained in:
Leo Franchi 2013-09-13 15:53:17 -04:00
parent c588c7938c
commit 5441e36167
1 changed files with 1 additions and 1 deletions

View File

@ -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)] = \