Wikia code/includes/ObjectCache.php
< Wikia code | includes
This page is obsolete. It is being retained for archival purposes. It may document extensions or features that are obsolete and/or no longer supported. Do not rely on the information here being up-to-date. The information shown below refers to the now unmaintained 1.16 MediaWiki release. The current stable release number is 1.43.0. |
--- 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;