add suggester sidebar class suggest to RedisRailsCache (#4754) [deploy]

This commit is contained in:
jeffin sam 2019-11-12 03:53:54 +05:30 committed by Ben Halpern
parent 743a157c65
commit 6e87a1d1e1

View file

@ -8,7 +8,7 @@ module Suggester
end
def suggest
Rails.cache.fetch(generate_cache_name, expires_in: 120.hours) do
RedisRailsCache.fetch(generate_cache_name, expires_in: 120.hours) do
reaction_count = Rails.env.production? ? 25 : 0
user_ids = Article.published.tagged_with([given_tag], any: true).
where("positive_reactions_count > ?", reaction_count).