X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FimportDump.php;h=6717a8ebde04654ac82004eb30d381760834bbc3;hb=50f1de243986a1d006fb4500fb19e5fa88cce336;hp=f0e0555af1deca3e2103865e69014db65186ae77;hpb=601519ee36462faabacf4547c9aefaf7e8726476;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/importDump.php b/maintenance/importDump.php index f0e0555af1..6717a8ebde 100644 --- a/maintenance/importDump.php +++ b/maintenance/importDump.php @@ -109,7 +109,8 @@ TEXT } $this->output( "Done!\n" ); - $this->output( "You might want to run rebuildrecentchanges.php to regenerate RecentChanges\n" ); + $this->output( "You might want to run rebuildrecentchanges.php to regenerate RecentChanges,\n" ); + $this->output( "and initSiteStats.php to update page and revision counts\n" ); } function setNsfilter( array $namespaces ) { @@ -283,6 +284,9 @@ TEXT $source = new ImportStreamSource( $handle ); $importer = new WikiImporter( $source, $this->getConfig() ); + // Updating statistics require a lot of time so disable it + $importer->disableStatisticsUpdate(); + if ( $this->hasOption( 'debug' ) ) { $importer->setDebug( true ); }