Clear $this->mOptionsLoaded in User::clearInstanceCache()
authorTim Starling <tstarling@wikimedia.org>
Fri, 19 Oct 2012 03:02:39 +0000 (14:02 +1100)
committerTim Starling <tstarling@wikimedia.org>
Fri, 19 Oct 2012 03:12:33 +0000 (14:12 +1100)
commitb7b606b3a2a34b6c291c270932501b500cefc31e
treee699fd8520c4e4c85d8209dc32d76c94c0add602
parent1941cfe369e0bd4170ed54da5e27005636049b28
Clear $this->mOptionsLoaded in User::clearInstanceCache()

(bug 41198) If clearInstanceCache() is to clear cached user data apart
from the data from the user table, as addToDatabase() expects, then
$this->mOptionsLoaded needs to be set to false. Clearing $this->mOptions
may reduce memory usage a bit, but is not sufficient.

Change-Id: I6912415dc154d06f62839a1ee777c2c3747253d6
includes/User.php