Selaa lähdekoodia

wes 多宝福袋 0306清除缓存 添加处理

APPLE 3 vuotta sitten
vanhempi
commit
e07f2b4642
1 muutettua tiedostoa jossa 7 lisäystä ja 1 poistoa
  1. 7 1
      app/admin/controller/Ajax.php

+ 7 - 1
app/admin/controller/Ajax.php

@@ -57,8 +57,14 @@ class Ajax extends AdminController
     public function clearCache()
     {
         CacheServices::clear();
-        RedisCache::keyDel("caches*");
+        RedisCache::keyDel("caches:config*");
+        RedisCache::keyDel("caches:sysconfig*");
+        RedisCache::keyDel("caches:articles*");
+        RedisCache::keyDel("caches:banners*");
+        RedisCache::keyDel("caches:goods*");
 
+        // 其他临时缓存
+        RedisCache::keyDel("caches:temp*");
         Cache::clear();
         $this->success('清理缓存成功');
     }