r23769 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23768‎ | r23769 | r23770 >
Date:04:25, 6 July 2007
Author:robchurch
Status:old
Tags:
Comment:
...and remove some un-needed lines
Modified paths:
  • /trunk/phase3/includes/GlobalFunctions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/GlobalFunctions.php
@@ -2265,13 +2265,10 @@
22662266 */
22672267 function wfQueriesMustScale() {
22682268 global $wgMiserMode;
2269 - // Unconditional performance requirement
2270 - if( $wgMiserMode )
2271 - return true;
2272 - // Rough estimate based on statistics
2273 - return SiteStats::pages() > 100000
 2269+ return $wgMiserMode
 2270+ || ( SiteStats::pages() > 100000
22742271 && SiteStats::edits() > 1000000
2275 - && SiteStats::users() > 10000;
 2272+ && SiteStats::users() > 10000 );
22762273 }
22772274
22782275 /**

Follow-up revisions

RevisionCommit summaryAuthorDate
r23912Merged revisions 23662-23909 via svnmerge from...david18:11, 9 July 2007

Status & tagging log