Commit 1ffa173c authored by Rob Colbert's avatar Rob Colbert

task to re-generate Home feed for every user

parent 5e08c295
# frozen_string_literal: true
task force_regenerate_feeds: 'gabsocial:force-regenerate-feeds'
namespace :gabsocial do
desc 'Re-generate home feeds for all users (run after any migrations)'
task :force_regenerate_feeds => :environment do
Account.select(:id, :username).all.each do |a|
Redis.current.set("account:#{a.id}:regeneration", true)
puts(a.username)
end
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment