public function __construct() {
parent::__construct();
$this->mDescription = "Send purge requests for listed pages to squid";
+ $this->addOption( 'purge', 'Whether to update page_touched.' , false, false );
}
public function execute() {
$url = $title->getFullUrl();
$this->output( "$url\n" );
$urls[] = $url;
- if ( isset( $options['purge'] ) ) {
+ if ( $this->getOptions( 'purge' ) ) {
$title->invalidateCache();
}
} else {
}
$maintClass = "PurgeList";
-require_once( DO_MAINTENANCE );
+require_once( RUN_MAINTENANCE_IF_MAIN );