将缓存设置成DB 类型后,用cache()读取缓存后,查询的表变为空

浏览:319 发布日期:2016/06/07 分类:求助交流
$res = M('video_cat')->alias('vc')
->field('cat_name')
->join('left join __CATEGORY__ c on vc.cat_id = c.id')
->where(['vc.video_id' => $video_id])
->limit(1)
->cache('videoCate_'.$video_id)
->select();


返回的数据{

"status": 0,
"message": "1103:Incorrect table name ''\n [ SQL语句 ] : SELECT `data`,`datacrc` FROM `` WHERE `cachekey`='api_videoCate_359' AND (`expire` =0 OR `expire`>1465298648) LIMIT 0,1",
"content": null

}
最佳答案
评论( 相关
后面还有条评论,点击查看>>