2016-11-16 02:56:29 +11:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-03-09 06:16:11 +11:00
|
|
|
class PrecomputeFeedService < BaseService
|
2017-05-20 00:21:52 +10:00
|
|
|
def call(account)
|
2020-09-08 11:41:16 +10:00
|
|
|
FeedManager.instance.populate_home(account)
|
2019-01-18 11:02:51 +11:00
|
|
|
ensure
|
2018-01-18 09:56:03 +11:00
|
|
|
Redis.current.del("account:#{account.id}:regeneration")
|
2016-03-09 06:16:11 +11:00
|
|
|
end
|
|
|
|
end
|