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);
            }
        }
    }
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);
            }
        }
    }
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 ) ; } } }
Clear cache data
@param array $arTags
@param string $sKeys
Clear cache data