From b5f91b17e009973830865527af2188351875f975 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Tue, 18 Feb 2025 21:46:21 +0800 Subject: [PATCH] :zap: Increase the gap between flush post views being called --- pkg/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/main.go b/pkg/main.go index c38228b..0f2cfc8 100644 --- a/pkg/main.go +++ b/pkg/main.go @@ -68,7 +68,7 @@ func main() { // Configure timed tasks quartz := cron.New(cron.WithLogger(cron.VerbosePrintfLogger(&log.Logger))) quartz.AddFunc("@every 60m", services.DoAutoDatabaseCleanup) - quartz.AddFunc("@every 1m", services.FlushPostViews) + quartz.AddFunc("@every 5m", services.FlushPostViews) quartz.Start() // Initialize cache