Пример #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
 /**
  * Clears all set cache data
  *
  * @return void
  */
 public static function clearCache()
 {
     if (self::$_cache !== null) {
         self::$_cache->clean();
     }
 }