소스 검색

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]