X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FpurgeChangedPages.php;h=31500c9ce05b82c6ee16bffce6fb82ed93411b9f;hb=53c4665ed057ec3aabd862fbe2ba3ee49d5150f2;hp=4ce9474ffd2418ed493e80ac94a744b7f1773240;hpb=23376a76c91b26353e5d2f546520002490c761d7;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/purgeChangedPages.php b/maintenance/purgeChangedPages.php index 4ce9474ffd..31500c9ce0 100644 --- a/maintenance/purgeChangedPages.php +++ b/maintenance/purgeChangedPages.php @@ -2,7 +2,6 @@ /** * Send purge requests for pages edited in date range to squid/varnish. * - * @section LICENSE * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or @@ -136,7 +135,7 @@ class PurgeChangedPages extends Maintenance { } // Send batch of purge requests out to squids - $squid = new SquidUpdate( $urls, count( $urls ) ); + $squid = new CdnCacheUpdate( $urls, count( $urls ) ); $squid->doUpdate(); if ( $this->hasOption( 'sleep-per-batch' ) ) { @@ -164,6 +163,7 @@ class PurgeChangedPages extends Maintenance { * * @param ResultWrapper $res Query result sorted by $column (ascending) * @param string $column + * @param int $limit * @return array (array of rows, string column value) */ protected function pageableSortedRows( ResultWrapper $res, $column, $limit ) {