コード例 #1
0
 /**
  * Internal method to check if the given cache supports tags
  *
  * @return false|string
  */
 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;
 }
コード例 #2
0
ファイル: Data.php プロジェクト: rexmac/zf2
 /**
  * Clears all set cache data
  *
  * @return void
  */
 public static function clearCache()
 {
     if (self::$_cache !== null) {
         self::$_cache->clean();
     }
 }