|
@@ -8,6 +8,7 @@ use App\Models\CmsContentTemplate;
|
|
|
use App\Models\CmsContentTemplateSet;
|
|
|
use App\Models\CmsSubjectProduct;
|
|
|
use Illuminate\Support\Facades\Cache;
|
|
|
+use Illuminate\Support\Facades\Redis;
|
|
|
use Symfony\Component\HttpKernel\Exception\HttpException;
|
|
|
use Illuminate\Support\Facades\DB;
|
|
|
use Illuminate\Database\QueryException;
|
|
@@ -472,16 +473,19 @@ class CmsContentTemplateSetRepository
|
|
|
}
|
|
|
}
|
|
|
if ($template->apply_type == 0) {
|
|
|
- if (Cache::has($group_key)) {
|
|
|
- Cache::forget($group_key);
|
|
|
+// if (Cache::has($group_key)) {
|
|
|
+// Cache::forget($group_key);
|
|
|
+// }
|
|
|
+ if (Redis::exists($group_key)) {
|
|
|
+ Redis::del($group_key);
|
|
|
}
|
|
|
} elseif ($template->apply_type == 1) {
|
|
|
- if (Cache::has($market_key)) {
|
|
|
- Cache::forget($market_key);
|
|
|
+ if (Redis::exists($market_key)) {
|
|
|
+ Redis::del($market_key);
|
|
|
}
|
|
|
} elseif ($template->apply_type == 2) {
|
|
|
- if (Cache::has($exchange_key)) {
|
|
|
- Cache::forget($exchange_key);
|
|
|
+ if (Redis::exists($exchange_key)) {
|
|
|
+ Redis::del($exchange_key);
|
|
|
}
|
|
|
}
|
|
|
|