<?php
/**
* See deferred.txt
+ * @file
+ * @ingroup Cache
*/
/**
- *
+ * Handles purging appropriate Squid URLs given a title (or titles)
+ * @ingroup Cache
*/
class SquidUpdate {
var $urlArr, $mMaxTitles;
/* open the remaining sockets for this server */
list($server, $port) = explode(':', $wgSquidServers[$ss]);
if(!isset($port)) $port = 80;
- $sockets[$so+1] = @fsockopen($server, $port, $error, $errstr, 2);
- @stream_set_blocking($sockets[$so+1],false);
+ $socket = @fsockopen($server, $port, $error, $errstr, 2);
+ @stream_set_blocking($socket,false);
+ $sockets[] = $socket;
}
$so++;
}