Fix #2619 - When redis feed is empty, fall back to database (#3721)

* Fix #2619 - When redis feed is empty, fall back to database

* Use redis value to return feed from database only while RegenerationWorker
hasn't finished running

* Fix specs

* Replace usage of reject!
This commit is contained in:
Eugen Rochko
2017-06-14 13:37:03 +02:00
committed by GitHub
parent 0f52e42c2d
commit dc8a6244fc
4 changed files with 27 additions and 7 deletions

View File

@ -17,6 +17,8 @@ class PrecomputeFeedService < BaseService
statuses.each do |status|
process_status(status)
end
redis.del("account:#{@account.id}:regeneration")
end
end