From e947396c04103eaa8741cf0b4e8fe0308bfca552 Mon Sep 17 00:00:00 2001 From: Simon Ding Date: Wed, 11 Dec 2024 20:11:33 +0800 Subject: [PATCH] fix: cache --- server/watchlist.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/watchlist.go b/server/watchlist.go index 3a76ac5..3b572a1 100644 --- a/server/watchlist.go +++ b/server/watchlist.go @@ -117,6 +117,8 @@ func (s *Server) GetTvWatchlist(c *gin.Context) (interface{}, error) { } } } + s.monitorNumCache.Set(item.ID, ms.MonitoredNum) + s.downloadNumCache.Set(item.ID, ms.DownloadedNum) } res[i] = ms