/** * method to retrieve the cache instance * * @return Billrun_Cache */ public static function cache() { try { if (!self::$cache) { $args = self::config()->getConfigValue('cache', array()); if (empty($args)) { return false; } self::$cache = Billrun_Cache::getInstance($args); } return self::$cache; } catch (Exception $e) { Billrun_Factory::log('Cache instance cannot be generated', Zend_Log::ALERT); } return false; }
/** * method to retrieve the cache instance * * @return Billrun_Cache */ public static function cache() { if (!self::$cache) { $args = self::config()->getConfigValue('cache', array()); if (empty($args)) { return false; } self::$cache = Billrun_Cache::getInstance($args); } return self::$cache; }