From 73de48e370a24d3db1ea7613fd39a63446079943 Mon Sep 17 00:00:00 2001 From: Ibrahim Khan <57107816+ibrahim-13@users.noreply.github.com> Date: Tue, 5 Nov 2019 04:04:46 +0600 Subject: [PATCH] Moved following_users_ids to Redis (#4708) --- app/models/user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/user.rb b/app/models/user.rb index 1cbccec35..e32d3cf27 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -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