diff options
author | Ondřej Hruška <ondra@ondrovo.com> | 2017-10-16 21:13:47 +0200 |
---|---|---|
committer | Ondřej Hruška <ondra@ondrovo.com> | 2017-10-16 21:13:47 +0200 |
commit | 8b9ee5f16bac8b53d56ac7d9974275658305803e (patch) | |
tree | e5449510dfbecd2615c9216c9a21f7dd123d7f4d /app/workers | |
parent | 4b397adb5bfb07be587c788e6e10962aa383d25f (diff) | |
parent | 34118169ace56b31d6d4b26638fb7375171b7796 (diff) |
Merge remote-tracking branch 'upstream/master' into upstream-merge-again
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/scheduler/feed_cleanup_scheduler.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/workers/scheduler/feed_cleanup_scheduler.rb b/app/workers/scheduler/feed_cleanup_scheduler.rb index dbebaa2c3..222f5ed84 100644 --- a/app/workers/scheduler/feed_cleanup_scheduler.rb +++ b/app/workers/scheduler/feed_cleanup_scheduler.rb @@ -6,8 +6,9 @@ class Scheduler::FeedCleanupScheduler def perform redis.pipelined do - inactive_users.pluck(:account_id).each do |account_id| + inactive_users.each do |account_id| redis.del(FeedManager.instance.key(:home, account_id)) + redis.del(FeedManager.instance.key(:home, account_id, 'reblogs')) end end end @@ -15,7 +16,7 @@ class Scheduler::FeedCleanupScheduler private def inactive_users - User.confirmed.inactive + @inactive_users ||= User.confirmed.inactive.pluck(:account_id) end def redis |