From: Domas Mituzas Date: Mon, 21 Dec 2009 16:13:15 +0000 (+0000) Subject: Reverting r59993, per Tim's comment at http://www.mediawiki.org/wiki/Special:Code... X-Git-Tag: 1.31.0-rc.0~38497 X-Git-Url: http://git.cyclocoop.org/%28%5B%5E/404?a=commitdiff_plain;h=46875f0484f2f1656c3daab0212832e090f224fe;p=lhc%2Fweb%2Fwiklou.git Reverting r59993, per Tim's comment at mediawiki.org/wiki/Special:Code/MediaWiki/59993#c4885 Still, we need to rethink user 'invalidations' (probably by replacing user object, rather than just touching the user). There are way too many invalidation cases out there, that happen in parallel blocking out each other. --- diff --git a/includes/User.php b/includes/User.php index ff7d374fc0..2f2c63160f 100644 --- a/includes/User.php +++ b/includes/User.php @@ -2282,6 +2282,7 @@ class User { function addWatch( $title ) { $wl = WatchedItem::fromUserTitle( $this, $title ); $wl->addWatch(); + $this->invalidateCache(); } /** @@ -2291,6 +2292,7 @@ class User { function removeWatch( $title ) { $wl = WatchedItem::fromUserTitle( $this, $title ); $wl->removeWatch(); + $this->invalidateCache(); } /**