Пример #1
0
 /**
  * Clears all set cache data
  *
  * @return void
  */
 public static function clearCache()
 {
     if (self::$_cacheTags) {
         self::$_cache->clean(IfwPsn_Vendor_Zend_Cache::CLEANING_MODE_MATCHING_TAG, array('IfwPsn_Vendor_Zend_Locale'));
     } else {
         self::$_cache->clean(IfwPsn_Vendor_Zend_Cache::CLEANING_MODE_ALL);
     }
 }
Пример #2
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)
 {
     require_once IFW_PSN_LIB_ROOT . 'IfwPsn/Vendor/Zend/Cache.php';
     if (self::$_cacheTags) {
         if ($tag == null) {
             $tag = 'IfwPsn_Vendor_Zend_Translate';
         }
         self::$_cache->clean(IfwPsn_Vendor_Zend_Cache::CLEANING_MODE_MATCHING_TAG, array($tag));
     } else {
         self::$_cache->clean(IfwPsn_Vendor_Zend_Cache::CLEANING_MODE_ALL);
     }
 }