<?php
/**
- * @addtogroup Cache
+ * @file
+ * @ingroup Cache
*/
/**
* It acts as a memcached server with no RAM, that is, all objects are
* cleared the moment they are set. All set operations succeed and all
* get operations return null.
- * @addtogroup Cache
+ * @ingroup Cache
*/
class FakeMemCachedClient {
function add ($key, $val, $exp = 0) { return true; }
if (!class_exists("MemcachedClientforWiki")) {
class MemCachedClientforWiki extends memcached {
function _debugprint( $text ) {
- wfDebug( "memcached: $text\n" );
+ wfDebug( "memcached: $text" );
}
}
}
}
$cache =& $wgCaches[CACHE_DBA];
}
-
+
if ( $type == CACHE_DB || ( $inputType == CACHE_ANYTHING && $cache === false ) ) {
if ( !array_key_exists( CACHE_DB, $wgCaches ) ) {
$wgCaches[CACHE_DB] = new MediaWikiBagOStuff('objectcache');
$ret =& wfGetCache( $wgParserCacheType );
return $ret;
}
-
-?>