Authored by hf

do add clear brand page cache

... ... @@ -214,7 +214,7 @@ class Yohobuy
{
/* 开启缓存的情况 */
if ($cache && USE_CACHE) {
$key = md5(implode(',', array_values($urlList)));
$key = md5(implode(',', array_values($urlList)));
// 先尝试获取一级缓存(master), 有数据则直接返回.
$result = Cache::get($key, 'master');
if (!empty($result)) {
... ...
... ... @@ -45,7 +45,7 @@ class BrandData
$param['method'] = 'app.brand.brandlist';
$param['yh_channel'] = $channel;
$param['client_secret'] = Sign::getSign($param);
$urlList['brandList'] = Yohobuy::httpBuildQuery(Yohobuy::API_URL, $param);
$urlList['brandList'] = Yohobuy::httpBuildQuery(Yohobuy::API_URL, $param);
return Yohobuy::getMulti($urlList, array(), 3600); // 有缓存1小时
}
... ...
... ... @@ -289,7 +289,12 @@ class IndexController extends AbstractAction
case 'bgimg':
Cache::delete(CacheConfig::KEY_ACTION_INDEX_INDEX);
break;
case 'brands':
Cache::delete('3206a153b0cebbd6e47be90c6ac41ee8');
Cache::delete('1c6bb62c480aec413b247d6f21e9c23a');
Cache::delete('60bb7899f49b3549dde438ac53526dea');
Cache::delete('9085ba21ac3d4f849c977da37a290a23');
break;
}
}
... ...