From: Aaron Schulz Date: Sat, 11 Oct 2008 21:06:21 +0000 (+0000) Subject: * Make $user->invalidateCache() get the Id if needed X-Git-Tag: 1.31.0-rc.0~44789 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=fc0a7303cd8a814054caabb42b4103f50d6eed47;p=lhc%2Fweb%2Fwiklou.git * Make $user->invalidateCache() get the Id if needed * Remove redundant cache clearing in renameuser --- diff --git a/includes/User.php b/includes/User.php index 64aebdd46c..c0c6ebca1d 100644 --- a/includes/User.php +++ b/includes/User.php @@ -1593,6 +1593,7 @@ class User { * Called implicitly from invalidateCache() and saveSettings(). */ private function clearSharedCache() { + $this->load(); if( $this->mId ) { global $wgMemc; $wgMemc->delete( wfMemcKey( 'user', 'id', $this->mId ) );