static function readObjectCache(Parser &$parser, $key = '') {
	    $parser->disableCache ();

	    $cache = \ObjectCache::getInstance(CACHE_DB);
	    
	    global $wgDIQAAllowedObjectCacheKeys;
	    if (!isset($wgDIQAAllowedObjectCacheKeys) 
	    	|| !in_array($key, $wgDIQAAllowedObjectCacheKeys)) {
	    	return 'not-allowed-to-access';
	    }
	    
		$value = $cache->get($key);
	    if (is_array($value)) {
	    	return "$key is an array";
	    }	    
	    if (is_object($value)) {
	    	return "$key is an object";
	    }
	    
		return array((string)$value, 'noparse' => true);
	}
static function readObjectCache(Parser &$parser, $key = '') {
	    $parser->disableCache ();

	    $cache = \ObjectCache::getInstance(CACHE_DB);
	    
	    global $wgDIQAAllowedObjectCacheKeys;
	    if (!isset($wgDIQAAllowedObjectCacheKeys) 
	    	|| !in_array($key, $wgDIQAAllowedObjectCacheKeys)) {
	    	return 'not-allowed-to-access';
	    }
	    
		$value = $cache->get($key);
	    if (is_array($value)) {
	    	return "$key is an array";
	    }	    
	    if (is_object($value)) {
	    	return "$key is an object";
	    }
	    
		return array((string)$value, 'noparse' => true);
	}
static function readObjectCache ( Parser & $ parser , $ key = '' ) { $ parser -> disableCache ( ) ; $ cache = \ ObjectCache :: getInstance ( CACHE_DB ) ; global $ wgDIQAAllowedObjectCacheKeys ; if ( ! isset ( $ wgDIQAAllowedObjectCacheKeys ) || ! in_array ( $ key , $ wgDIQAAllowedObjectCacheKeys ) ) { return 'not-allowed-to-access' ; } $ value = $ cache -> get ( $ key ) ; if ( is_array ( $ value ) ) { return "$key is an array" ; } if ( is_object ( $ value ) ) { return "$key is an object" ; } return array ( ( string ) $ value , 'noparse' => true ) ; }
Read key from ObjectCache
Read key from ObjectCache