about summary refs log tree commit diff
path: root/app/services/precompute_feed_service.rb
blob: b4fa70710a313de74172c9d4c032c1d2cd1faa9b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

class PrecomputeFeedService < BaseService
  def call(account)
    FeedManager.instance.populate_home(account)
    FeedManager.instance.populate_direct_feed(account)
  ensure
    Redis.current.del("account:#{account.id}:regeneration")
  end
end