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