r92679 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92678‎ | r92679 | r92680 >
Date:20:40, 20 July 2011
Author:werdna
Status:ok
Tags:
Comment:
EditPageTracking: Prioritisation for performance, do an easier check first
Modified paths:
  • /trunk/extensions/EditPageTracking/EditPageTracking.php (modified) (history)

Diff [purge]

Index: trunk/extensions/EditPageTracking/EditPageTracking.php
@@ -46,10 +46,6 @@
4747 return true;
4848 }
4949
50 - if ( EditPageTracking::getFirstEditPage( $wgUser ) ) {
51 - // Already stored.
52 - return true;
53 - }
5450 global $wgEditPageTrackingRegistrationCutoff;
5551
5652 if ( $wgEditPageTrackingRegistrationCutoff &&
@@ -59,6 +55,11 @@
6056 return true;
6157 }
6258
 59+ if ( EditPageTracking::getFirstEditPage( $wgUser ) ) {
 60+ // Already stored.
 61+ return true;
 62+ }
 63+
6364 // Record it
6465 $dbw = wfGetDB( DB_MASTER );
6566

Status & tagging log