X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2FpurgeList.php;h=d558c478e84cffe9dbafe02d5704d845172b028e;hp=5ca7918ea9164bb7cce7ef61f4ec2f2acbf3f7f7;hb=e90012d5581801045910f31ddefa9aee52e39d39;hpb=61898ad28ed69c5b391eb43e0db9386279b9612c diff --git a/maintenance/purgeList.php b/maintenance/purgeList.php index 5ca7918ea9..d558c478e8 100644 --- a/maintenance/purgeList.php +++ b/maintenance/purgeList.php @@ -1,6 +1,6 @@ addDescription( 'Send purge requests for listed pages to squid' ); + $this->addDescription( 'Send purge requests for listed pages to CDN' ); $this->addOption( 'purge', 'Whether to update page_touched.', false, false ); $this->addOption( 'namespace', 'Namespace number', false, true ); $this->addOption( 'all', 'Purge all pages', false, false ); @@ -99,7 +99,7 @@ class PurgeList extends Maintenance { $conds + [ 'page_id > ' . $dbr->addQuotes( $startId ) ], __METHOD__, [ - 'LIMIT' => $this->mBatchSize, + 'LIMIT' => $this->getBatchSize(), 'ORDER BY' => 'page_id' ] @@ -120,7 +120,7 @@ class PurgeList extends Maintenance { /** * Helper to purge an array of $urls - * @param array $urls List of URLS to purge from squids + * @param array $urls List of URLS to purge from CDNs */ private function sendPurgeRequest( $urls ) { if ( $this->hasOption( 'delay' ) ) { @@ -143,5 +143,5 @@ class PurgeList extends Maintenance { } } -$maintClass = "PurgeList"; +$maintClass = PurgeList::class; require_once RUN_MAINTENANCE_IF_MAIN;