Moved following_users_ids to Redis (#4708)
This commit is contained in:
parent
76e099599b
commit
73de48e370
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue