original_string: public static function clear($arTags, $sKeys = null)
      {
          $sCacheDriver = config('cache.default');
          if(!empty($arTags)) {
              if($sCacheDriver == 'redis') {
                  if(!empty($sKeys)) {
                      Cache::tags($arTags)->forget($sKeys);
                  } else {
                      Cache::tags($arTags)->flush();
                  }
              } else {
                  $sKeys = implode('_', $arTags).'_'.$sKeys;
                  Cache::forget($sKeys);
              }
          }
      }
code: public static function clear($arTags, $sKeys = null)
      {
          $sCacheDriver = config('cache.default');
          if(!empty($arTags)) {
              if($sCacheDriver == 'redis') {
                  if(!empty($sKeys)) {
                      Cache::tags($arTags)->forget($sKeys);
                  } else {
                      Cache::tags($arTags)->flush();
                  }
              } else {
                  $sKeys = implode('_', $arTags).'_'.$sKeys;
                  Cache::forget($sKeys);
              }
          }
      }
code_tokens: public static function clear ( $ arTags , $ sKeys = null ) { $ sCacheDriver = config ( 'cache.default' ) ; if ( ! empty ( $ arTags ) ) { if ( $ sCacheDriver == 'redis' ) { if ( ! empty ( $ sKeys ) ) { Cache :: tags ( $ arTags ) -> forget ( $ sKeys ) ; } else { Cache :: tags ( $ arTags ) -> flush ( ) ; } } else { $ sKeys = implode ( '_' , $ arTags ) . '_' . $ sKeys ; Cache :: forget ( $ sKeys ) ; } } }
docstring: Clear cache data
  @param array $arTags
  @param string $sKeys
docstring_tokens: Clear cache data