Index: trunk/phase3/maintenance/rebuildFileCache.php |
— | — | @@ -32,15 +32,21 @@ |
33 | 33 | $this->setBatchSize( 100 ); |
34 | 34 | } |
35 | 35 | |
| 36 | + public function finalSetup() { |
| 37 | + global $wgDebugToolbar; |
| 38 | + |
| 39 | + // Debug toolbar makes content uncacheable so we disable it. |
| 40 | + // Has to be done before Setup.php initialize MWDebug |
| 41 | + $wgDebugToolbar = false; |
| 42 | + parent::finalSetup(); |
| 43 | + } |
| 44 | + |
36 | 45 | public function execute() { |
37 | 46 | global $wgUseFileCache, $wgReadOnly, $wgContentNamespaces, $wgRequestTime; |
38 | | - global $wgDebugToolbar; |
39 | 47 | global $wgTitle, $wgOut; |
40 | 48 | if ( !$wgUseFileCache ) { |
41 | 49 | $this->error( "Nothing to do -- \$wgUseFileCache is disabled.", true ); |
42 | 50 | } |
43 | | - // Debug toolbar makes content uncacheable |
44 | | - $wgDebugToolbar = false; |
45 | 51 | |
46 | 52 | $wgReadOnly = 'Building cache'; // avoid DB writes (like enotif/counters) |
47 | 53 | |