|
@@ -50,12 +50,12 @@ class Recommend extends BaseModel
|
|
|
public function getRecommendList($condition = [], $field = 'id, goods_id,goods_name,goods_image, create_time', $order = '', $limit = null)
|
|
|
{
|
|
|
$data = json_encode([ $condition, $field, $order, $limit ]);
|
|
|
- $cache = Cache::get("recommend_getRecommendList_" . $data);
|
|
|
- if (!empty($cache)) {
|
|
|
- return $this->success($cache);
|
|
|
- }
|
|
|
+// $cache = Cache::get("recommend_getRecommendList_" . $data);
|
|
|
+// if (!empty($cache)) {
|
|
|
+// return $this->success($cache);
|
|
|
+// }
|
|
|
$list = model('recommend')->getList($condition, $field, $order, '', '', '', $limit);
|
|
|
- Cache::tag("recommend")->set("recommend_getRecommendList_" . $data, $list);
|
|
|
+// Cache::tag("recommend")->set("recommend_getRecommendList_" . $data, $list);
|
|
|
|
|
|
return $this->success($list);
|
|
|
}
|