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