mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Cache result of SQL (#14534)
This commit is contained in:
parent
bd3420b139
commit
8b61bb1c3e
@ -30,7 +30,7 @@ class Form::CustomEmojiBatch
|
||||
private
|
||||
|
||||
def custom_emojis
|
||||
CustomEmoji.where(id: custom_emoji_ids)
|
||||
@custom_emojis ||= CustomEmoji.where(id: custom_emoji_ids)
|
||||
end
|
||||
|
||||
def update!
|
||||
|
Loading…
Reference in New Issue
Block a user