clear filter cache when regenerating feeds

master
multiple creatures 2020-01-10 18:27:37 -06:00
parent 5f84297df2
commit 0090aca045
1 changed files with 1 additions and 0 deletions

View File

@ -5,6 +5,7 @@ namespace :monsterfork do
task reapply_filters: :environment do
Account.local.find_each do |account|
Rails.logger.info("Re-applying filters for: #{account.username}")
Redis.current.del("filtered_statuses:#{account.id}")
FilterFeedsWorker.perform_async(account.id)
sleep 1
while Sidekiq::Queue.new.size > 5