2016-11-16 00:56:29 +09:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-03-09 04:16:11 +09:00
|
|
|
class PrecomputeFeedService < BaseService
|
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-01-18 09:02:51 +09:00
|
|
|
ensure
|
2018-01-18 07:56:03 +09:00
|
|
|
Redis.current.del("account:#{account.id}:regeneration")
|
2016-03-09 04:16:11 +09:00
|
|
|
end
|
|
|
|
end
|