浏览代码

fix:redis 缓存时间修改

duxin 3 年之前
父节点
当前提交
6a7c104615
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/jfw/front/supsearch.go

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

@@ -433,7 +433,7 @@ func Newbids(p string) []interface{} {
 			}
 			pages = append(pages, data[sta:end])
 		}
-		redis.Put("newother", "index_list"+p, pages, 60*60*24*2)
+		redis.Put("newother", "index_list"+p, pages, 60*60*24)
 		pages, _ = redis.Get("newother", "index_list"+p).([]interface{})
 	}
 	return pages