From 79a5a46a4a92a282681524a21092776f2afdd9d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Sat, 18 Dec 2021 12:48:50 +0800 Subject: [PATCH] autofix old error --- config/routes.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/routes.rb b/config/routes.rb index 56f618c..8db2b20 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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