dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Keep the same DBLoadBalancerFactory in tests"
[lhc/web/wiklou.git]
/
maintenance
/
rebuildFileCache.php
diff --git
a/maintenance/rebuildFileCache.php
b/maintenance/rebuildFileCache.php
index
d073282
..
04ac967
100644
(file)
--- a/
maintenance/rebuildFileCache.php
+++ b/
maintenance/rebuildFileCache.php
@@
-41,7
+41,7
@@
class RebuildFileCache extends Maintenance {
}
public function finalSetup() {
}
public function finalSetup() {
- global $wgDebugToolbar, $wgUseFileCache
, $wgReadOnly
;
+ global $wgDebugToolbar, $wgUseFileCache;
$this->enabled = $wgUseFileCache;
// Script will handle capturing output and saving it itself
$this->enabled = $wgUseFileCache;
// Script will handle capturing output and saving it itself
@@
-50,7
+50,8
@@
class RebuildFileCache extends Maintenance {
// Has to be done before Setup.php initialize MWDebug
$wgDebugToolbar = false;
// Avoid DB writes (like enotif/counters)
// Has to be done before Setup.php initialize MWDebug
$wgDebugToolbar = false;
// Avoid DB writes (like enotif/counters)
- $wgReadOnly = 'Building cache'; // avoid DB writes (like enotif/counters)
+ MediaWiki\MediaWikiServices::getInstance()->getReadOnlyMode()
+ ->setReason( 'Building cache' );
parent::finalSetup();
}
parent::finalSetup();
}
@@
-140,7
+141,7
@@
class RebuildFileCache extends Maintenance {
MediaWiki\suppressWarnings(); // header notices
// Cache ?action=view
MediaWiki\suppressWarnings(); // header notices
// Cache ?action=view
- $wgRequestTime = microtime( true ); #
bug 22
852
+ $wgRequestTime = microtime( true ); #
T24
852
ob_start();
$article->view();
$context->getOutput()->output();
ob_start();
$article->view();
$context->getOutput()->output();
@@
-148,7
+149,7
@@
class RebuildFileCache extends Maintenance {
$viewHtml = ob_get_clean();
$viewCache->saveToFileCache( $viewHtml );
// Cache ?action=history
$viewHtml = ob_get_clean();
$viewCache->saveToFileCache( $viewHtml );
// Cache ?action=history
- $wgRequestTime = microtime( true ); #
bug 22
852
+ $wgRequestTime = microtime( true ); #
T24
852
ob_start();
Action::factory( 'history', $article, $context )->show();
$context->getOutput()->output();
ob_start();
Action::factory( 'history', $article, $context )->show();
$context->getOutput()->output();