Use a redis-cached feed for the DM timeline

This commit is contained in:
Thibaut Girka
2019-06-25 22:56:32 +02:00
committed by ThibG
parent 2f95adc06f
commit ca17bae904
9 changed files with 100 additions and 13 deletions

View File

@@ -9,6 +9,7 @@ class Scheduler::FeedCleanupScheduler
def perform
clean_home_feeds!
clean_list_feeds!
clean_direct_feeds!
end
private
@@ -21,6 +22,10 @@ class Scheduler::FeedCleanupScheduler
clean_feeds!(inactive_list_ids, :list)
end
def clean_direct_feeds!
clean_feeds!(inactive_account_ids, :direct)
end
def clean_feeds!(ids, type)
reblogged_id_sets = {}