Esempio n. 1
0
 /**
  * Internal method to check if the given cache supports tags
  *
  * @return bool
  */
 protected static function _getTagSupportForCache()
 {
     if (!self::$_cache instanceof CacheAdapter) {
         self::$_cacheTags = false;
         return false;
     }
     self::$_cacheTags = true;
     return true;
 }
Esempio n. 2
0
 /**
  * Internal method to check if the given cache supports tags
  *
  * @param Zend_Cache $cache
  */
 protected static function _getTagSupportForCache()
 {
     $backend = self::$_cache->getBackend();
     if ($backend instanceof \Zend\Cache\Backend\ExtendedInterface) {
         $cacheOptions = $backend->getCapabilities();
         self::$_cacheTags = $cacheOptions['tags'];
     } else {
         self::$_cacheTags = false;
     }
     return self::$_cacheTags;
 }