mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +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',
|
||||
output_format = 'xhtml' )
|
||||
|
||||
@cache_with_key(lambda self: 'display_recipient_dict:%d' % (self.id))
|
||||
def get_display_recipient(recipient):
|
||||
"""
|
||||
recipient: an subject of Recipient.
|
||||
|
||||
Reference in New Issue
Block a user