Explorar o código

feat:缓存时间调整

fuwencai hai 1 ano
pai
achega
786576e5af
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {
 		if len(list) > 0 {
-			redis.Put("other", topKey, list, 60*60*2)
+			redis.Put("other", topKey, list, 60*60*12)
 		}
 		}
 		if len(list) > pageSizeReq {
 		if len(list) > pageSizeReq {
 			list = list[:pageSizeReq]
 			list = list[:pageSizeReq]