From 46875f0484f2f1656c3daab0212832e090f224fe Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Mon, 21 Dec 2009 16:13:15 +0000 Subject: [PATCH] Reverting r59993, per Tim's comment at http://www.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. --- includes/User.php | 2 ++ 1 file changed, 2 insertions(+) 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(); } /** -- 2.20.1