瀏覽代碼

feat:缓存时间调整

fuwencai 1 年之前
父節點
當前提交
786576e5af
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      jydocs-back/servers/stdDoc.go

+ 1 - 1
jydocs-back/servers/stdDoc.go

@@ -381,7 +381,7 @@ func (stdDoc *StdDoc) DocRecommend() {
 		}
 		// 存缓存
 		if len(list) > 0 {
-			redis.Put("other", topKey, list, 60*60*2)
+			redis.Put("other", topKey, list, 60*60*12)
 		}
 		if len(list) > pageSizeReq {
 			list = list[:pageSizeReq]