Wikia code/includes/ObjectCache.php

--- D:\Programming\SVN\mediawiki\branches\REL1_16\phase3\includes\ObjectCache.php	2011-07-18 22:31:28.026367200 +0100
+++ D:\Programming\SVN\wikia\trunk\includes\ObjectCache.php	2011-08-17 15:28:46.388671900 +0100
@@ -87,6 +87,17 @@
 		$cache =& $wgCaches[CACHE_DB];
 	}
 
+	/* Wikia change begin - @author: eloy */
+	if( defined( "CACHE_RIAK" ) ) {
+		if ( $type == CACHE_RIAK ) {
+			if ( !array_key_exists( CACHE_RIAK, $wgCaches ) ) {
+				$wgCaches[ CACHE_RIAK ] = new RiakCache;
+			}
+			$cache =& $wgCaches[ CACHE_RIAK ];
+		}
+	}
+	/* Wikia change end */
+
 	if ( $cache === false ) {
 		if ( !array_key_exists( CACHE_NONE, $wgCaches ) ) {
 			$wgCaches[CACHE_NONE] = new FakeMemCachedClient;