2016-11-16 02:56:29 +11:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-03-09 06:16:11 +11:00
|
|
|
class PrecomputeFeedService < BaseService
|
2022-04-29 01:47:34 +10:00
|
|
|
include Redisable
|
|
|
|
|
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
|
2022-04-29 01:47:34 +10:00
|
|
|
redis.del("account:#{account.id}:regeneration")
|
2016-03-09 06:16:11 +11:00
|
|
|
end
|
|
|
|
end
|