/** * Delete key from cache(s). * * This method deletes a key from the cache instance. * * @param string The cached key to delete. * @return void */ public static function deleteCached($key) { self::log('cache-delete', $key); $hash = self::getHash(); if (!isset(self::$cache)) { self::$cache = Frapi_Cache::getInstance(FRAPI_CACHE_ADAPTER); } return self::$cache->delete($hash . '-' . $key); }
public static function getConfiguration($type) { if (!isset(self::$cache)) { self::$cache = Frapi_Cache::getInstance(FRAPI_CACHE_ADAPTER); } if (!isset(self::$conf[$type])) { self::initConfiguration($type); } return self::$conf[$type]; }