From 2a0eea93eee966ee79967803a3b98e7cfcba5b5d Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 3 Apr 2010 08:56:07 +0000 Subject: [PATCH] * (bug 22852) "Served in" comment is now the time used to cache a single page when using rebuildFileCache.php --- RELEASE-NOTES | 2 ++ maintenance/rebuildFileCache.php | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 31962ecf5d..12a21f8998 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -75,6 +75,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 22867) "View source" tab is now only displayed if there's source text * (bug 19393) Feeds now format dates in user language rather than content language +* (bug 22852) "Served in" comment is now the time used to cache a single page + when using rebuildFileCache.php === API changes in 1.17 === * (bug 22738) Allow filtering by action type on query=logevent diff --git a/maintenance/rebuildFileCache.php b/maintenance/rebuildFileCache.php index 2a4e488471..78b5ce8e16 100644 --- a/maintenance/rebuildFileCache.php +++ b/maintenance/rebuildFileCache.php @@ -32,7 +32,7 @@ class RebuildFileCache extends Maintenance { } public function execute() { - global $wgUseFileCache, $wgDisableCounters, $wgContentNamespaces; + global $wgUseFileCache, $wgDisableCounters, $wgContentNamespaces, $wgRequestTime; global $wgTitle, $wgArticle, $wgOut, $wgUser; if( !$wgUseFileCache ) { $this->error( "Nothing to do -- \$wgUseFileCache is disabled.", true ); @@ -72,6 +72,7 @@ class RebuildFileCache extends Maintenance { ); foreach( $res as $row ) { $rebuilt = false; + $wgRequestTime = wfTime(); # bug 22852 $wgTitle = Title::makeTitleSafe( $row->page_namespace, $row->page_title ); if( null == $wgTitle ) { $this->output( "Page {$row->page_id} has bad title\n" ); @@ -91,7 +92,7 @@ class RebuildFileCache extends Maintenance { continue; // done already! } } - ob_start( array(&$cache, 'saveToFileCache' ) ); // save on ob_end_clean() + ob_start( array( &$cache, 'saveToFileCache' ) ); // save on ob_end_clean() $wgUseFileCache = false; // hack, we don't want $wgArticle fiddling with filecache $wgArticle->view(); @$wgOut->output(); // header notices -- 2.20.1