Skip to content

Commit

Permalink
[FIX] Reduce Message cache time to 500ms (#15295)
Browse files Browse the repository at this point in the history
  • Loading branch information
vickyokrm authored and ggazzo committed Sep 13, 2019
1 parent 2debe89 commit f63d9d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/ui-utils/client/lib/renderMessageBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ export const renderMessageBody = mem((message) => {

return (Array.isArray(tokens) ? tokens.reverse() : [])
.reduce((html, { token, text }) => html.replace(token, () => text), html);
}, 5000, ({ _id, _updatedAt }) => _id && _updatedAt && _id + _updatedAt);
}, 500, ({ _id, _updatedAt }) => _id && _updatedAt && _id + _updatedAt);

0 comments on commit f63d9d5

Please sign in to comment.