From a3e92639adae9f2d3dc40aa71be92dc0184eb25b Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 9 Jun 2016 00:15:20 -0700 Subject: [PATCH] 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 --- includes/user/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.20.1