protected function _initCache($class = 'cache') { $cache = '_' . $class; if (!isset($this->{$cache}) || $this->{$cache} instanceof Zend_Cache) { if ($this->_cachedStaticClass && class_exists($this->_cachedStaticClass)) { // build a cache object based around the $_cachedEntity $this->{$cache} = Showcase_Cache::buildClassCache($this->_cachedStaticClass, get_class($this)); } } }
protected static function _getBackendEngine() { if (!self::$_cacheEngine) { if (Zend_Registry::isRegistered('site_cache_settings') && Zend_Registry::get('site_cache_settings') instanceof Zend_Config) { $_cacheEngine = Zend_Registry::get('site_cache_settings')->backend->type; } else { self::$_cacheEngine = 'File'; } } return self::$_cacheEngine; }