Showing
1 changed file
with
9 additions
and
1 deletions
@@ -32,6 +32,7 @@ class ToolsController extends WebAction | @@ -32,6 +32,7 @@ class ToolsController extends WebAction | ||
32 | { | 32 | { |
33 | //频道=>key | 33 | //频道=>key |
34 | $channels = array( | 34 | $channels = array( |
35 | + '导航' => CacheConfig::KEY_WEB_HOME_NAVBAR_DATA, | ||
35 | '男生首页'=> CacheConfig::KEY_WEB_HOME_CHANNEL_DATA.'_'.HomeModel::CODE_BOYS_CHANNEL, | 36 | '男生首页'=> CacheConfig::KEY_WEB_HOME_CHANNEL_DATA.'_'.HomeModel::CODE_BOYS_CHANNEL, |
36 | '女生首页'=> CacheConfig::KEY_WEB_HOME_CHANNEL_DATA.'_'.HomeModel::CODE_GIRLS_CHANNEL, | 37 | '女生首页'=> CacheConfig::KEY_WEB_HOME_CHANNEL_DATA.'_'.HomeModel::CODE_GIRLS_CHANNEL, |
37 | 'kids首页'=> CacheConfig::KEY_WEB_HOME_CHANNEL_DATA.'_'.HomeModel::CODE_KIDS_CHANNEL, | 38 | 'kids首页'=> CacheConfig::KEY_WEB_HOME_CHANNEL_DATA.'_'.HomeModel::CODE_KIDS_CHANNEL, |
@@ -54,8 +55,15 @@ class ToolsController extends WebAction | @@ -54,8 +55,15 @@ class ToolsController extends WebAction | ||
54 | { | 55 | { |
55 | $key = $this->get('key'); | 56 | $key = $this->get('key'); |
56 | if(!empty($key)) { | 57 | if(!empty($key)) { |
57 | - AuthCode::decode($key, 'yohobuy'); | 58 | + $key = AuthCode::decode($key, 'yohobuy'); |
58 | if(!empty($key)) { | 59 | if(!empty($key)) { |
60 | + //导航清除 | ||
61 | + if($key == CacheConfig::KEY_WEB_HOME_NAVBAR_DATA) { | ||
62 | + $list = array(HomeModel::COOKIE_NAME_BOYS, HomeModel::COOKIE_NAME_GIRLS, HomeModel::COOKIE_NAME_KIDS, HomeModel::COOKIE_NAME_LIFESTYLE); | ||
63 | + foreach ($list as $val) { | ||
64 | + Cache::delete($key.'_'.$val); | ||
65 | + } | ||
66 | + } | ||
59 | Cache::delete($key); | 67 | Cache::delete($key); |
60 | echo '清除成功'; | 68 | echo '清除成功'; |
61 | } | 69 | } |
-
Please register or login to post a comment