2016-11-15 17:56:29 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-03-08 21:16:11 +02:00
|
|
|
class PrecomputeFeedService < BaseService
|
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-01-18 02:02:51 +02:00
|
|
|
ensure
|
2018-01-18 00:56:03 +02:00
|
|
|
Redis.current.del("account:#{account.id}:regeneration")
|
2016-03-08 21:16:11 +02:00
|
|
|
end
|
|
|
|
end
|