Merge branch 'feature/entity-cache-fix' into 'develop'
Feature/entity cache fix See merge request gab/social/gab-social!55
This commit is contained in:
commit
1def861fa0
|
@ -8,7 +8,7 @@ class EntityCache
|
||||||
MAX_EXPIRATION = 7.days.freeze
|
MAX_EXPIRATION = 7.days.freeze
|
||||||
|
|
||||||
def mention(username, domain)
|
def mention(username, domain)
|
||||||
Rails.cache.fetch(to_key(:mention, username, domain), expires_in: MAX_EXPIRATION) { Account.select(:username, :domain, :url).find_local(username) }
|
Rails.cache.fetch(to_key(:mention, username, domain), expires_in: MAX_EXPIRATION) { Account.select(:username, :domain, :url) }
|
||||||
end
|
end
|
||||||
|
|
||||||
def emoji(shortcodes, domain = nil)
|
def emoji(shortcodes, domain = nil)
|
||||||
|
|
Loading…
Reference in New Issue