2016-11-15 15:56:29 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-03-08 19:16:11 +00:00
|
|
|
class PrecomputeFeedService < BaseService
|
2022-04-28 15:47:34 +00:00
|
|
|
include Redisable
|
|
|
|
|
2017-05-19 14:21:52 +00:00
|
|
|
def call(account)
|
2020-09-08 01:41:16 +00:00
|
|
|
FeedManager.instance.populate_home(account)
|
2019-06-25 20:56:32 +00:00
|
|
|
FeedManager.instance.populate_direct_feed(account)
|
2019-01-18 00:02:51 +00:00
|
|
|
ensure
|
2022-04-28 15:47:34 +00:00
|
|
|
redis.del("account:#{account.id}:regeneration")
|
2016-03-08 19:16:11 +00:00
|
|
|
end
|
|
|
|
end
|