...and remove some un-needed lines
This commit is contained in:
parent
b5cf6fe9a3
commit
69e2f161c1
1 changed files with 3 additions and 6 deletions
|
|
@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue