autofix old error
This commit is contained in:
parent
ddbe773d25
commit
79a5a46a4a
|
@ -1,6 +1,9 @@
|
||||||
Rails.application.routes.draw do
|
Rails.application.routes.draw do
|
||||||
if ENV['worker_num']=='0' && File.basename($0) != 'rake' && !Rails.const_defined?('Console')
|
if ENV['worker_num']=='0' && File.basename($0) != 'rake' && !Rails.const_defined?('Console')
|
||||||
Bulletin
|
Bulletin
|
||||||
|
if BulletinFeedCache.count>BulletinFeed.count*5
|
||||||
|
BulletinFeedCache.collection.drop
|
||||||
|
end
|
||||||
Thread.new do
|
Thread.new do
|
||||||
BulletinFeedCache.regenerate_all
|
BulletinFeedCache.regenerate_all
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue