From 33764d3c75690ed03ff56d0cf8efba55900fc912 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Wed, 7 Aug 2024 15:38:53 +0800 Subject: [PATCH] by Robin at 20240807 --- app/mix/service/xxljob_tasks.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/mix/service/xxljob_tasks.go b/app/mix/service/xxljob_tasks.go index 9df640b8..3d2d4bd7 100644 --- a/app/mix/service/xxljob_tasks.go +++ b/app/mix/service/xxljob_tasks.go @@ -466,6 +466,10 @@ func (s *CronService) ReloadMomentRecommList(ctx context.Context, param *xxl.Run logger.Error("Del redis cache fail, err: %v", err) return fmt.Sprintf("Del redis cache fail, err: %v", err) } + if err := redis.GetRedisClient().Del(consts.RedisMomentPrefix + "recent_list"); err != nil { + logger.Error("Del redis cache fail, err: %v", err) + return fmt.Sprintf("Del redis cache fail, err: %v", err) + } // 加载缓存 for _, moment := range list {