wgSquidServersNoPurge
authorRiver Tarnell <kateturner@users.mediawiki.org>
Wed, 12 Jan 2005 22:45:39 +0000 (22:45 +0000)
committerRiver Tarnell <kateturner@users.mediawiki.org>
Wed, 12 Jan 2005 22:45:39 +0000 (22:45 +0000)
includes/DefaultSettings.php
includes/Setup.php

index 1457612..5943dd0 100644 (file)
@@ -581,6 +581,7 @@ $wgCookieExpiration = 2592000;
 # 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;
index 05e968f..0beca54 100644 (file)
@@ -36,7 +36,8 @@ if( $wgUseSquid && isset( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) {
        # 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));