コード例 #1
0
ファイル: Adapter.php プロジェクト: heiglandreas/zf2
 /**
  * Internal method to check if the given cache supports tags
  *
  * @param Zend_Cache $cache
  */
 private 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;
 }
コード例 #2
0
ファイル: Adapter.php プロジェクト: hjr3/zf2
 /**
  * Removes any set cache
  *
  * @return void
  */
 public static function removeCache()
 {
     self::$_cache = null;
 }