|
@@ -69,6 +69,15 @@ class cacheControl extends SystemControl
|
|
|
// 首页
|
|
|
Model('web_config')->getWebHtml('index', 1);
|
|
|
delCacheFile('index');
|
|
|
+
|
|
|
+ // 删除商品相关数据
|
|
|
+ $cacher = Cache::getInstance('cacheredis');
|
|
|
+ $keys = $cacher->keys('goods*');
|
|
|
+ if(!empty($keys) && is_array($keys)){
|
|
|
+ foreach($keys as $key) {
|
|
|
+ $cacher->del($key);
|
|
|
+ }
|
|
|
+ }
|
|
|
} else {
|
|
|
$todo = (array) $_POST['cache'];
|
|
|
|
|
@@ -108,6 +117,18 @@ class cacheControl extends SystemControl
|
|
|
dkcache('area_toplevelareas'); // 省级别缓存处理
|
|
|
dkcache('area_cityprovince'); // 市级别缓存处理
|
|
|
}
|
|
|
+
|
|
|
+ // 删除商品相关数据
|
|
|
+ if (in_array('goods',$todo)) {
|
|
|
+ $cacher = Cache::getInstance('cacheredis');
|
|
|
+ $keys = $cacher->keys('goods*');
|
|
|
+ if(!empty($keys) && is_array($keys)){
|
|
|
+ foreach($keys as $key) {
|
|
|
+ $cacher->del($key);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
$this->log(L('cache_cls_operate'));
|