* (bug 19391) Fix caching for Recent ChangesFeed.
* (bug 21455) Fixed "Watch this page" checkbox appearing on some special pages
even to non-logged in users
+* (bug 21551) Make Squid reponse limit configurable
== API changes in 1.16 ==
*/
$wgSquidServersNoPurge = array();
+/**
+ * Default character limit for squid purge responses
+ */
+$wgSquidResponseLimit = 250;
+
/** Maximum number of titles to purge in any one client operation */
$wgMaxSquidPurgeTitles = 400;
XXX report broken Squids per mail or log */
static function purge( $urlArr ) {
- global $wgSquidServers, $wgHTCPMulticastAddress, $wgHTCPPort;
+ global $wgSquidServers, $wgHTCPMulticastAddress, $wgHTCPPort, $wgSquidResponseLimit;
/*if ( (@$wgSquidServers[0]) == 'echo' ) {
echo implode("<br />\n", $urlArr) . "<br />\n";
#$this->debug("\n");
/* Squid only returns http headers with 200 or 404 status,
if there's more returned something's wrong */
- if (strlen($res) > 250) {
+ if (strlen($res) > $wgSquidResponseLimit) {
fclose($socket);
$failed = true;
$totalsockets -= $sockspersq;