I was hoping that you implement this small change for 3.0.0 :(
Actually I have already rewritten the function on my own just for fun lol static public function getCache( $keys )
{
if ( is_string( $keys ) )
{
if ( ! in_array( $keys, array_keys( self::$data_store ) ) )
{
self::_loadCaches( array( $keys ) );
}
return self::$data_store[ $keys ];
}
elseif ( is_array( $keys ) && count( $keys ) )
{
$toLoad = array();
foreach( $keys as $key )
{
if ( ! in_array( $key, array_keys( self::$data_store ) ) )
{
$toLoad[] = $key;
}
}
self::_loadCaches( $toLoad );
return TRUE;
}
return FALSE;
}