Moved following_users_ids to Redis (#4708)

This commit is contained in:
Ibrahim Khan 2019-11-05 04:04:46 +06:00 committed by Ben Halpern
parent 76e099599b
commit 73de48e370

View file

@ -240,7 +240,7 @@ class User < ApplicationRecord
end
def cached_following_users_ids
Rails.cache.fetch(
RedisRailsCache.fetch(
"user-#{id}-#{updated_at}-#{following_users_count}/following_users_ids",
expires_in: 120.hours,
) do