* (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
}
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 );
);
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" );
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