# A list of proxy servers (ips if possible) to purge on changes
# don't specify ports here (80 is default)
# $wgSquidServers = array('127.0.0.1');
+$wgSquidServersNoPurge = array();
# Maximum number of titles to purge in any one client operation
$wgMaxSquidPurgeTitles = 400;
# out where our requests are really coming from.
$hopips = array_map( 'trim', explode( ',', $_SERVER['HTTP_X_FORWARDED_FOR'] ) );
- while(in_array(trim(end($hopips)), $wgSquidServers)){
+ $allsquids = array_merge($wgSquidServers, $wgSquidServersNoPurge);
+ while(in_array(trim(end($hopips)), $allsquids)){
array_pop($hopips);
}
$wgIP = trim(end($hopips));