autofix old error

This commit is contained in:
邱博亞 2021-12-18 12:48:50 +08:00
parent ddbe773d25
commit 79a5a46a4a
1 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,9 @@
Rails.application.routes.draw do
if ENV['worker_num']=='0' && File.basename($0) != 'rake' && !Rails.const_defined?('Console')
Bulletin
if BulletinFeedCache.count>BulletinFeed.count*5
BulletinFeedCache.collection.drop
end
Thread.new do
BulletinFeedCache.regenerate_all
end