Browse Source

feat:文库推荐缓存调整

fuwencai 1 year ago
parent
commit
4fa5927090
1 changed files with 1 additions and 1 deletions
  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*12)
+			redis.Put(public.RedisCode, topKey, list, 60*60*12)
 		}
 		}
 		if len(list) > pageSizeReq {
 		if len(list) > pageSizeReq {
 			list = list[:pageSizeReq]
 			list = list[:pageSizeReq]