Gab Social. All are welcome.
This commit is contained in:
9
app/services/precompute_feed_service.rb
Normal file
9
app/services/precompute_feed_service.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class PrecomputeFeedService < BaseService
|
||||
def call(account)
|
||||
FeedManager.instance.populate_feed(account)
|
||||
ensure
|
||||
Redis.current.del("account:#{account.id}:regeneration")
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user