* Make $user->invalidateCache() get the Id if needed
authorAaron Schulz <aaron@users.mediawiki.org>
Sat, 11 Oct 2008 21:06:21 +0000 (21:06 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sat, 11 Oct 2008 21:06:21 +0000 (21:06 +0000)
* Remove redundant cache clearing in renameuser

includes/User.php

index 64aebdd..c0c6ebc 100644 (file)
@@ -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 ) );