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