php的yii框架的memcache的用发实例:
$cache_key = ‘ALL_GROUPS_‘.$this->city_id;
$groups_data=Yii::app()->Memcache->get($cache_key);
if(empty($group_data)){
//楼盘api $groups_api = str_replace(‘%s‘, $city_info[‘domain_name‘], JConfig::item(‘apiConfig.groups_api‘).‘&city_id=‘.$this->city_id; $json_result = UtlsFn::simpleRequest($groups_api); $result = CJSON::decode($json_result); if (empty($result)) ErrorFn::show(ErrorFn::API_ERROR,null,ErrorFn::TEMPLATE_TYPE_WAP); $groups_data=$result; Yii::app()->Memcache->set($cache_key,$groups_data,1800);
}
项目bug:
修改bug(yes):30,31,32,34,42,51,54,39,
重点bug:47,45(not)
不确定bug:48(not),62(not)
可有可无的bug:,61(not)
没有必要bug(not):29(not),41(not),44(not),
不是bug(not),51,53,55,57,59,60,63,38
前段的bug(yes):21.22.20(数据提供者,可以修复,需求在变)
时间: 2024-10-07 18:29:40