* Added $wgAdvertisedFeedTypes to decide what feed types (RSS, Atom, both, or
neither) MediaWiki advertises. Default is array( 'atom' ), so RSS is no
longer advertised by default (but it still works).
-
+* Added $wgMemCachedTimeout to configure connection timeouts for communicating
+ with a memcached server
=== New features in 1.16 ===
$wgMemCachedDebug = false; ///< Will be set to false in Setup.php, if the server isn't working
$wgMemCachedServers = array( '127.0.0.1:11000' );
$wgMemCachedPersistent = false;
+$wgMemCachedTimeout = 100000; //Server connection timeout in microseconds
/**@}*/
/**
* @return mixed
*/
public function __construct( $args ) {
+ global $wgMemCachedTimeout;
$this->set_servers( @$args['servers'] );
$this->_debug = @$args['debug'];
$this->stats = array();
$this->_host_dead = array();
$this->_timeout_seconds = 0;
- $this->_timeout_microseconds = 50000;
+ $this->_timeout_microseconds = $wgMemCachedTimeout;
$this->_connect_timeout = 0.01;
$this->_connect_attempts = 2;