about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2020-01-10 18:27:37 -0600
committermultiple creatures <dev@multiple-creature.party>2020-01-10 18:27:37 -0600
commit0090aca0453285ed6f4d55758ccd05200025d11a (patch)
tree4837e171b6344f0a466c557b7449f6c625f4618b /lib
parent5f84297df2cbf94aa511bdbe9f419fdcc57b70fa (diff)
clear filter cache when regenerating feeds
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/monsterfork.rake1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/tasks/monsterfork.rake b/lib/tasks/monsterfork.rake
index a5a5ea434..6ca7f54df 100644
--- a/lib/tasks/monsterfork.rake
+++ b/lib/tasks/monsterfork.rake
@@ -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