From: Aaron Schulz Date: Thu, 9 Jun 2016 07:15:20 +0000 (-0700) Subject: Use READ_NORMAL for User cache regenerations X-Git-Tag: 1.31.0-rc.0~6665^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/gestion/rappel_supprimer.php?a=commitdiff_plain;h=a3e92639adae9f2d3dc40aa71be92dc0184eb25b;p=lhc%2Fweb%2Fwiklou.git Use READ_NORMAL for User cache regenerations This fixes a regression from 3bbccc8da64b6. A large uptick in master queries showed in DBPerformance logs. Change-Id: I5cf07aba2c3f928005d3aba55554c406e87026e2 --- diff --git a/includes/user/User.php b/includes/user/User.php index 8ecf468647..2dba38014d 100644 --- a/includes/user/User.php +++ b/includes/user/User.php @@ -477,7 +477,7 @@ class User implements IDBAccessObject { $setOpts += Database::getCacheSetOptions( wfGetDB( DB_SLAVE ) ); wfDebug( "User: cache miss for user {$this->mId}\n" ); - $this->loadFromDatabase(); + $this->loadFromDatabase( self::READ_NORMAL ); $this->loadGroups(); $this->loadOptions();