Jump to content

Wikia code/includes/Interwiki.php

From mediawiki.org
--- D:\Programming\SVN\mediawiki\branches\REL1_16\phase3\includes\Interwiki.php	2011-07-18 22:31:27.977539100 +0100
+++ D:\Programming\SVN\wikia\trunk\includes\Interwiki.php	2011-08-17 15:28:46.339843700 +0100
@@ -137,7 +137,9 @@
 	 */
 	protected static function load( $prefix ) {
 		global $wgMemc, $wgInterwikiExpiry;
-		$key = wfMemcKey( 'interwiki', $prefix );
+
+		# temporary fix RT#15123
+		$key = wfMemcKey( 'interwiki', md5($prefix) );
 		$mc = $wgMemc->get( $key );
 		$iw = false;
 		if( $mc && is_array( $mc ) ) { // is_array is hack for old keys