From e32cecf60f1a6d45543381b7f96be11fd7da16b7 Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 26 Jun 2015 16:30:07 +1000 Subject: [PATCH] Don't run perf report in multisite --- app/jobs/scheduled/daily_performance_report.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/jobs/scheduled/daily_performance_report.rb b/app/jobs/scheduled/daily_performance_report.rb index c568941716b..343d3740b99 100644 --- a/app/jobs/scheduled/daily_performance_report.rb +++ b/app/jobs/scheduled/daily_performance_report.rb @@ -4,7 +4,8 @@ module Jobs per_host def execute(args) - if SiteSetting.daily_performance_report + if SiteSetting.daily_performance_report && + RailsMultisite::ConnectionManagement.current_db == "default" result = `ruby #{Rails.root}/script/nginx_analyze.rb --limit 1440` report_data = if result.strip.empty?