From 088337765c150f09079df85dd521c15499f78b77 Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 12 Feb 2023 00:35:52 +0800 Subject: [PATCH] Update webstats_worker.lua --- plugins/webstats/lua/webstats_worker.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/webstats/lua/webstats_worker.lua b/plugins/webstats/lua/webstats_worker.lua index deca2b8a7..2eda941e6 100644 --- a/plugins/webstats/lua/webstats_worker.lua +++ b/plugins/webstats/lua/webstats_worker.lua @@ -10,7 +10,6 @@ local __WS_C = require "webstats_common" local WS_C = __WS_C:getInstance() WS_C:cronPre() -WS_C:cron() local webstats_cron_pre = function(premature) WS_C:cronPre() @@ -18,4 +17,5 @@ end if ngx.worker.id() == 0 then ngx.timer.every(60, webstats_cron_pre) + WS_C:cron() end \ No newline at end of file