mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
performance: Cache display_recipients.
(imported from commit 9ca18bd75213423cbf17c6262113822d3009c320)
This commit is contained in:
@@ -16,6 +16,7 @@ md_engine = markdown.Markdown(
|
|||||||
safe_mode = 'escape',
|
safe_mode = 'escape',
|
||||||
output_format = 'xhtml' )
|
output_format = 'xhtml' )
|
||||||
|
|
||||||
|
@cache_with_key(lambda self: 'display_recipient_dict:%d' % (self.id))
|
||||||
def get_display_recipient(recipient):
|
def get_display_recipient(recipient):
|
||||||
"""
|
"""
|
||||||
recipient: an subject of Recipient.
|
recipient: an subject of Recipient.
|
||||||
|
|||||||
Reference in New Issue
Block a user