Index: trunk/phase3/maintenance/rebuildFileCache.php |
— | — | @@ -32,7 +32,7 @@ |
33 | 33 | } |
34 | 34 | |
35 | 35 | public function execute() { |
36 | | - global $wgUseFileCache, $wgDisableCounters, $wgContentNamespaces; |
| 36 | + global $wgUseFileCache, $wgDisableCounters, $wgContentNamespaces, $wgRequestTime; |
37 | 37 | global $wgTitle, $wgArticle, $wgOut, $wgUser; |
38 | 38 | if( !$wgUseFileCache ) { |
39 | 39 | $this->error( "Nothing to do -- \$wgUseFileCache is disabled.", true ); |
— | — | @@ -72,6 +72,7 @@ |
73 | 73 | ); |
74 | 74 | foreach( $res as $row ) { |
75 | 75 | $rebuilt = false; |
| 76 | + $wgRequestTime = wfTime(); # bug 22852 |
76 | 77 | $wgTitle = Title::makeTitleSafe( $row->page_namespace, $row->page_title ); |
77 | 78 | if( null == $wgTitle ) { |
78 | 79 | $this->output( "Page {$row->page_id} has bad title\n" ); |
— | — | @@ -91,7 +92,7 @@ |
92 | 93 | continue; // done already! |
93 | 94 | } |
94 | 95 | } |
95 | | - ob_start( array(&$cache, 'saveToFileCache' ) ); // save on ob_end_clean() |
| 96 | + ob_start( array( &$cache, 'saveToFileCache' ) ); // save on ob_end_clean() |
96 | 97 | $wgUseFileCache = false; // hack, we don't want $wgArticle fiddling with filecache |
97 | 98 | $wgArticle->view(); |
98 | 99 | @$wgOut->output(); // header notices |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -75,6 +75,8 @@ |
76 | 76 | * (bug 22867) "View source" tab is now only displayed if there's source text |
77 | 77 | * (bug 19393) Feeds now format dates in user language rather than content |
78 | 78 | language |
| 79 | +* (bug 22852) "Served in" comment is now the time used to cache a single page |
| 80 | + when using rebuildFileCache.php |
79 | 81 | |
80 | 82 | === API changes in 1.17 === |
81 | 83 | * (bug 22738) Allow filtering by action type on query=logevent |