X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FrefreshLinks.php;h=facc5064c1bb18d1a4e59dd945b079a459e24d15;hb=3e4f72bc7e47c9221b088173a650ac835c13971c;hp=a6cd54853e38f2b0c579d2a896b3f59a7cc0fd15;hpb=fa32e55a7c7c133fd841f474237c6a11a1ff0588;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/refreshLinks.php b/maintenance/refreshLinks.php index a6cd54853e..facc5064c1 100644 --- a/maintenance/refreshLinks.php +++ b/maintenance/refreshLinks.php @@ -178,7 +178,6 @@ class RefreshLinks extends Maintenance { $this->output( "Starting from page_id $start of $end.\n" ); for ( $id = $start; $id <= $end; $id++ ) { - if ( !( $id % self::REPORTING_INTERVAL ) ) { $this->output( "$id\n" ); wfWaitForSlaves(); @@ -191,7 +190,6 @@ class RefreshLinks extends Maintenance { $this->output( "Starting from page_id $start of $end.\n" ); for ( $id = $start; $id <= $end; $id++ ) { - if ( !( $id % self::REPORTING_INTERVAL ) ) { $this->output( "$id\n" ); wfWaitForSlaves(); @@ -278,6 +276,7 @@ class RefreshLinks extends Maintenance { $page->getTitle(), /* $old = */ null, /* $recursive = */ false ); foreach ( $updates as $update ) { DeferredUpdates::addUpdate( $update ); + DeferredUpdates::doUpdates(); } }