Browse Source

fix:取消程序内部缓存

duxin 3 years ago
parent
commit
b8ee49e27f
1 changed files with 11 additions and 11 deletions
  1. 11 11
      src/jfw/front/supsearch.go

+ 11 - 11
src/jfw/front/supsearch.go

@@ -83,17 +83,17 @@ func PCS_task() {
 
 //返回内存中列表也的数据,只获取首页,其他页面访问量暂时不多
 func PCS_list(page_type string) interface{} {
-	var _page_type = page_type
-	//如果page_type为空,则是获取非拟建数据。
-	if page_type == "" {
-		_page_type = "page_index"
-	}
-	PCSLock.Lock()
-	defer PCSLock.Unlock()
-	if PCS_index[_page_type] == nil {
-		PCS_index[_page_type] = Newbids(page_type)[0]
-	}
-	return PCS_index[_page_type]
+	/*var _page_type = page_type
+	  //如果page_type为空,则是获取非拟建数据。
+	  if page_type == "" {
+	  	_page_type = "page_index"
+	  }
+	  PCSLock.Lock()
+	  defer PCSLock.Unlock()
+	  if PCS_index[_page_type] == nil {
+	  	PCS_index[_page_type] = Newbids(page_type)[0]
+	  }*/
+	return Newbids(page_type)[0]
 }
 
 //