MediaWiki r13058 - Code Review

Jump to: navigation, search
Repository:MediaWiki
Revision:r13057‎ | r13058 (on ViewVC)‎ | r13059 >
Date:09:55, 19 February 2006
Author:midom
Status:old
Tags:
Comment:
add knob for persistent MC connections
Modified paths:

Diff [purge]

Index: trunk/phase3/includes/ObjectCache.php
===================================================================
--- trunk/phase3/includes/ObjectCache.php	(revision 13057)
+++ trunk/phase3/includes/ObjectCache.php	(revision 13058)
@@ -35,7 +35,7 @@
 
 /** @todo document */
 function &wfGetCache( $inputType ) {
-	global $wgCaches, $wgMemCachedServers, $wgMemCachedDebug;
+	global $wgCaches, $wgMemCachedServers, $wgMemCachedDebug, $wgMemCachedPersistent;
 	$cache = false;
 
 	if ( $inputType == CACHE_ANYTHING ) {
@@ -61,7 +61,7 @@
 			}
 
 			$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 );
Index: trunk/phase3/includes/DefaultSettings.php
===================================================================
--- trunk/phase3/includes/DefaultSettings.php	(revision 13057)
+++ trunk/phase3/includes/DefaultSettings.php	(revision 13058)
@@ -539,6 +539,7 @@
 $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

Status & tagging log

  • 01:58, 13 October 2010 ^demon (Talk | contribs) changed the status of r13058 [removed: new added: old]
Personal tools
Namespaces
Variants
Views
Actions
Site
Support
Download
Development
Communication
Toolbox