about summary refs log tree commit diff
path: root/lib/tasks/mastodon.rake
diff options
context:
space:
mode:
authorDavid Yip <yipdw@member.fsf.org>2018-01-20 16:37:35 -0600
committerGitHub <noreply@github.com>2018-01-20 16:37:35 -0600
commit24b6e4121f656d24adc5676e8a207ded610a7ea7 (patch)
tree1c7b908468e12a40a6433f02f86f2cf47fa53cf9 /lib/tasks/mastodon.rake
parentb8c6656ce9e498f2e99d6301212bcd12e7f839df (diff)
parent3cae3622146d80aef8e43e5790d25f5e2fc9931e (diff)
Merge pull request #342 from glitch-soc/merge-upstream
Merge upstream
Diffstat (limited to 'lib/tasks/mastodon.rake')
-rw-r--r--lib/tasks/mastodon.rake9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/tasks/mastodon.rake b/lib/tasks/mastodon.rake
index 38dbed982..486c035de 100644
--- a/lib/tasks/mastodon.rake
+++ b/lib/tasks/mastodon.rake
@@ -341,6 +341,15 @@ namespace :mastodon do
       LinkCrawlWorker.push_bulk status_ids
     end
 
+    desc 'Remove all home feed regeneration markers'
+    task remove_regeneration_markers: :environment do
+      keys = Redis.current.keys('account:*:regeneration')
+
+      Redis.current.pipelined do
+        keys.each { |key| Redis.current.del(key) }
+      end
+    end
+
     desc 'Check every known remote account and delete those that no longer exist in origin'
     task purge_removed_accounts: :environment do
       prepare_for_options!