Kaynağa Gözat

feat:文库推荐缓存调整

fuwencai 1 yıl önce
ebeveyn
işleme
4fa5927090
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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*12)
+			redis.Put(public.RedisCode, topKey, list, 60*60*12)
 		}
 		if len(list) > pageSizeReq {
 			list = list[:pageSizeReq]