Defer user stats update like the others.
authorAaron <aschulz@wikimedia.org>
Fri, 21 Sep 2012 22:50:26 +0000 (15:50 -0700)
committerAaron <aschulz@wikimedia.org>
Fri, 21 Sep 2012 22:50:26 +0000 (15:50 -0700)
Change-Id: I6092f383d2e4a5f9a2457dbc4b0aa8a1f3c2829a

includes/specials/SpecialUserlogin.php

index 3e7f37a..ef6af80 100644 (file)
@@ -464,8 +464,7 @@ class LoginForm extends SpecialPage {
                $u->saveSettings();
 
                # Update user count
-               $ssUpdate = new SiteStatsUpdate( 0, 0, 0, 0, 1 );
-               $ssUpdate->doUpdate();
+               DeferredUpdates::addUpdate( new SiteStatsUpdate( 0, 0, 0, 0, 1 ) );
 
                return $u;
        }