예제 #1
0
 /**
  * Clears all set cache data
  *
  * @param string $tag Tag to clear when the default tag name is not used
  * @return void
  */
 public static function clearCache($tag = null)
 {
     if (self::$_cacheTags) {
         if ($tag == null) {
             $tag = 'Zend_Locale';
         }
         self::$_cache->clean(\Zend\Cache\Cache::CLEANING_MODE_MATCHING_TAG, array($tag));
     } else {
         self::$_cache->clean(\Zend\Cache\Cache::CLEANING_MODE_ALL);
     }
 }
예제 #2
0
파일: Data.php 프로젝트: rexmac/zf2
 /**
  * Clears all set cache data
  *
  * @return void
  */
 public static function clearCache()
 {
     if (self::$_cache !== null) {
         self::$_cache->clean();
     }
 }