/**
* 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
public function __construct() {
parent::__construct();
- $this->mDescription = 'Send purge requests for edits in date range to squid/varnish';
+ $this->addDescription( 'Send purge requests for edits in date range to squid/varnish' );
$this->addOption( 'starttime', 'Starting timestamp', true, true );
$this->addOption( 'endtime', 'Ending timestamp', true, true );
$this->addOption( 'htcp-dest', 'HTCP announcement destination (IP:port)', false, true );
}
// 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' ) ) {