From: Aaron Schulz Date: Sat, 24 Jan 2009 18:37:52 +0000 (+0000) Subject: Avoid slave lag on $title->getLatestRevID() X-Git-Tag: 1.31.0-rc.0~43268 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=5dee7c5b437d78c9869dc6f2e06ee7d8d5eec4bd;p=lhc%2Fweb%2Fwiklou.git Avoid slave lag on $title->getLatestRevID() --- diff --git a/includes/UserMailer.php b/includes/UserMailer.php index 3d74a3d048..a2d4baef0a 100644 --- a/includes/UserMailer.php +++ b/includes/UserMailer.php @@ -400,7 +400,7 @@ class EmailNotification { $this->compose( $user ); } - $latestTimestamp = Revision::getTimestampFromId( $title, $title->getLatestRevID() ); + $latestTimestamp = Revision::getTimestampFromId( $title, $title->getLatestRevID(GAID_FOR_UPDATE) ); // Do not update watchlists if something else already did. if ( $timestamp >= $latestTimestamp && ($wgShowUpdatedMarker || $wgEnotifWatchlist) ) { # Mark the changed watch-listed page with a timestamp, so that the page is