Index: trunk/phase3/includes/Title.php |
— | — | @@ -3232,6 +3232,7 @@ |
3233 | 3233 | if ( $u ) { |
3234 | 3234 | $u->doUpdate(); |
3235 | 3235 | } |
| 3236 | + |
3236 | 3237 | # Update message cache for interface messages |
3237 | 3238 | if ( $this->getNamespace() == NS_MEDIAWIKI ) { |
3238 | 3239 | # @bug 17860: old article can be deleted, if this the case, |
— | — | @@ -3324,10 +3325,11 @@ |
3325 | 3326 | } |
3326 | 3327 | $nullRevId = $nullRevision->insertOn( $dbw ); |
3327 | 3328 | |
| 3329 | + $now = wfTimestampNow(); |
3328 | 3330 | # Change the name of the target page: |
3329 | 3331 | $dbw->update( 'page', |
3330 | 3332 | /* SET */ array( |
3331 | | - 'page_touched' => $dbw->timestamp(), |
| 3333 | + 'page_touched' => $dbw->timestamp( $now ), |
3332 | 3334 | 'page_namespace' => $nt->getNamespace(), |
3333 | 3335 | 'page_title' => $nt->getDBkey(), |
3334 | 3336 | 'page_latest' => $nullRevId, |
— | — | @@ -3339,6 +3341,7 @@ |
3340 | 3342 | |
3341 | 3343 | $article = new Article( $nt ); |
3342 | 3344 | wfRunHooks( 'NewRevisionFromEditComplete', array( $article, $nullRevision, $latest, $wgUser ) ); |
| 3345 | + $article->setCachedLastEditTime( $now ); |
3343 | 3346 | |
3344 | 3347 | # Recreate the redirect, this time in the other direction. |
3345 | 3348 | if ( $createRedirect || !$wgUser->isAllowed( 'suppressredirect' ) ) { |
Index: trunk/phase3/includes/WikiPage.php |
— | — | @@ -846,7 +846,8 @@ |
847 | 847 | } |
848 | 848 | |
849 | 849 | /** |
850 | | - * Get the cached timestamp for the last time the page changed |
| 850 | + * Get the cached timestamp for the last time the page changed. |
| 851 | + * This is only used to help handle slave lag by comparing to page_touched. |
851 | 852 | * @return string MW timestamp |
852 | 853 | */ |
853 | 854 | protected function getCachedLastEditTime() { |
— | — | @@ -856,7 +857,8 @@ |
857 | 858 | } |
858 | 859 | |
859 | 860 | /** |
860 | | - * Set the cached timestamp for the last time the page changed |
| 861 | + * Set the cached timestamp for the last time the page changed. |
| 862 | + * This is only used to help handle slave lag by comparing to page_touched. |
861 | 863 | * @param $timestamp string |
862 | 864 | * @return void |
863 | 865 | */ |