autofix old error
This commit is contained in:
parent
ddbe773d25
commit
79a5a46a4a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue