This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2016-11-15 07:56:29 -08:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-03-08 11:16:11 -08:00
|
|
|
class PrecomputeFeedService < BaseService
|
2017-05-19 07:21:52 -07:00
|
|
|
def call(account)
|
2020-09-07 18:41:16 -07:00
|
|
|
FeedManager.instance.populate_home(account)
|
2019-06-25 13:56:32 -07:00
|
|
|
FeedManager.instance.populate_direct_feed(account)
|
2019-01-17 16:02:51 -08:00
|
|
|
ensure
|
2018-01-17 14:56:03 -08:00
|
|
|
Redis.current.del("account:#{account.id}:regeneration")
|
2016-03-08 11:16:11 -08:00
|
|
|
end
|
|
|
|
end
|