Add rake task mastodon:feeds:build to regenerate all active users' feeds (#4303)
This commit is contained in:
		
					parent
					
						
							
								3c515f2cd2
							
						
					
				
			
			
				commit
				
					
						7964bfccdb
					
				
			
		
					 2 changed files with 8 additions and 0 deletions
				
			
		|  | @ -143,6 +143,13 @@ namespace :mastodon do | |||
|     task clear_all: :environment do | ||||
|       Redis.current.keys('feed:*').each { |key| Redis.current.del(key) } | ||||
|     end | ||||
| 
 | ||||
|     desc 'Generates home timelines for users who logged in in the past two weeks' | ||||
|     task build: :environment do | ||||
|       User.active.includes(:account).find_each do |u| | ||||
|         PrecomputeFeedService.new.call(u.account) | ||||
|       end | ||||
|     end | ||||
|   end | ||||
| 
 | ||||
|   namespace :emails do | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue