Exemple #1
0
 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));
         }
     }
 }
Exemple #2
0
 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;
 }