r60263 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r60262
|
r60263
|
r60264
>
Date:
16:13, 21 December 2009
Author:
midom
Status:
ok
Tags:
Comment:
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.
Modified paths:
/trunk/phase3/includes/User.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/phase3/includes/User.php
—
—
@@ -2282,6 +2282,7 @@
2283
2283
function addWatch( $title ) {
2284
2284
$wl = WatchedItem::fromUserTitle( $this, $title );
2285
2285
$wl->addWatch();
2286
+ $this->invalidateCache();
2286
2287
}
2287
2288
2288
2289
/**
—
—
@@ -2291,6 +2292,7 @@
2292
2293
function removeWatch( $title ) {
2293
2294
$wl = WatchedItem::fromUserTitle( $this, $title );
2294
2295
$wl->removeWatch();
2296
+ $this->invalidateCache();
2295
2297
}
2296
2298
2297
2299
/**
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r59993
I fail to see why we need to invalidate cache on watchlist edits here, do we ...
midom
14:52, 12 December 2009
Status & tagging log
07:07, 12 January 2010
Tim Starling
(
talk
|
contribs
)
changed the
status
of r60263
[
removed:
new
added:
ok]