From 69e2f161c111934d73f6e600911c519e75f047a9 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Fri, 6 Jul 2007 04:25:06 +0000 Subject: [PATCH] ...and remove some un-needed lines --- includes/GlobalFunctions.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 5a96e72748..aaf150c1c9 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -2265,13 +2265,10 @@ function wfLocalFile( $title ) { */ function wfQueriesMustScale() { global $wgMiserMode; - // Unconditional performance requirement - if( $wgMiserMode ) - return true; - // Rough estimate based on statistics - return SiteStats::pages() > 100000 + return $wgMiserMode + || ( SiteStats::pages() > 100000 && SiteStats::edits() > 1000000 - && SiteStats::users() > 10000; + && SiteStats::users() > 10000 ); } /** -- 2.20.1