X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpurgeChangedPages.php;h=cce9b036a5f78255349531ed382692bcc8c75f95;hb=99e0e6790295a17e081faf98f35cf08144568cf0;hp=b354399f8844bd3c41409afdb38c153428ce3bc0;hpb=314058b0d0b8aad36b82ff0b7df2c52c89a475d1;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/purgeChangedPages.php b/maintenance/purgeChangedPages.php index b354399f88..cce9b036a5 100644 --- a/maintenance/purgeChangedPages.php +++ b/maintenance/purgeChangedPages.php @@ -23,6 +23,8 @@ require_once __DIR__ . '/Maintenance.php'; +use Wikimedia\Rdbms\ResultWrapper; + /** * Maintenance script that sends purge requests for pages edited in a date * range to squid/varnish. @@ -77,7 +79,7 @@ class PurgeChangedPages extends Maintenance { $stuckCount = 0; // loop breaker while ( true ) { // Adjust bach size if we are stuck in a second that had many changes - $bSize = $this->mBatchSize + ( $stuckCount * $this->mBatchSize ); + $bSize = ( $stuckCount + 1 ) * $this->getBatchSize(); $res = $dbr->select( [ 'page', 'revision' ],