$wgMemCachedDebug = false; # Will be set to false in Setup.php, if the server isn't working
$wgMemCachedServers = array( '127.0.0.1:11000' );
$wgMemCachedDebug = false;
+$wgMemCachedPersistent = false;
/**
* Directory for local copy of message cache, for use in addition to memcached
/** @todo document */
function &wfGetCache( $inputType ) {
- global $wgCaches, $wgMemCachedServers, $wgMemCachedDebug;
+ global $wgCaches, $wgMemCachedServers, $wgMemCachedDebug, $wgMemCachedPersistent;
$cache = false;
if ( $inputType == CACHE_ANYTHING ) {
}
$wgCaches[CACHE_DB] = new MemCachedClientforWiki(
- array('persistant' => false, 'compress_threshold' => 1500 ) );
+ array('persistant' => $wgMemCachedPersistent, 'compress_threshold' => 1500 ) );
$cache =& $wgCaches[CACHE_DB];
$cache->set_servers( $wgMemCachedServers );
$cache->set_debug( $wgMemCachedDebug );