blob: 40cfad57276200232cc448d78342fcd3619c7c4b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
# frozen_string_literal: true
class PrecomputeFeedService < BaseService
def call(account)
Redis.current.del("feed:home:#{account.id}")
FeedManager.instance.populate_feed(account)
FeedManager.instance.populate_direct_feed(account)
ensure
Redis.current.del("account:#{account.id}:regeneration")
end
end
|