Browse Source

sunguidong

zhangguidong 2 years ago
parent
commit
9f27761586
1 changed files with 5 additions and 5 deletions
  1. 5 5
      app/model/web/Recommend.php

+ 5 - 5
app/model/web/Recommend.php

@@ -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);
     }