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