Clear the cached edit count within User::clearInstanceCache
authorMarius Hoch <hoo@online.de>
Fri, 5 Oct 2012 16:52:57 +0000 (18:52 +0200)
committerMarius Hoch <hoo@online.de>
Fri, 5 Oct 2012 16:52:57 +0000 (18:52 +0200)
(After a question in r26457): Let User::clearInstanceCache
clear out the cached edit count as well, as a user session
can be open for a long time.

Change-Id: I4444f352e3b5df7b24f37668a5f1fbf9d64d6978

includes/User.php

index 8216914..4ab90ed 100644 (file)
@@ -1204,6 +1204,7 @@ class User {
                $this->mEffectiveGroups = null;
                $this->mImplicitGroups = null;
                $this->mOptions = null;
+               $this->mEditCount = null;
 
                if ( $reloadFrom ) {
                        $this->mLoadedItems = array();