Reverting r59993, per Tim's comment at http://www.mediawiki.org/wiki/Special:Code...
authorDomas Mituzas <midom@users.mediawiki.org>
Mon, 21 Dec 2009 16:13:15 +0000 (16:13 +0000)
committerDomas Mituzas <midom@users.mediawiki.org>
Mon, 21 Dec 2009 16:13:15 +0000 (16:13 +0000)
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

index ff7d374..2f2c631 100644 (file)
@@ -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();
        }
 
        /**