Jump to content

Wikia code/includes/db/LoadMonitor.php

From mediawiki.org
--- D:\Programming\SVN\mediawiki\branches\REL1_16\phase3\includes\db\LoadMonitor.php	2011-07-18 22:30:57.701171900 +0100
+++ D:\Programming\SVN\wikia\trunk\includes\db\LoadMonitor.php	2011-08-17 15:28:13.522460900 +0100
@@ -68,7 +68,7 @@
 			$wgMemc = wfGetMainCache();
 		
 		$masterName = $this->parent->getServerName( 0 );
-		$memcKey = wfMemcKey( 'lag_times', $masterName );
+		$memcKey = join( ':', array( 'db', 'lag_times', $masterName ) );
 		$times = $wgMemc->get( $memcKey );
 		if ( $times ) {
 			# Randomly recache with probability rising over $expiry