From 7b962335e482687cfa77490946b75dcb81bc1925 Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 12 Feb 2023 01:08:03 +0800 Subject: [PATCH] up --- plugins/webstats/lua/webstats_common.lua | 1 + plugins/webstats/lua/webstats_worker.lua | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/webstats/lua/webstats_common.lua b/plugins/webstats/lua/webstats_common.lua index eb0194ce5..8b68bff6b 100644 --- a/plugins/webstats/lua/webstats_common.lua +++ b/plugins/webstats/lua/webstats_common.lua @@ -55,6 +55,7 @@ end function _M.getInstance(self) if self.instance == nil then self.instance = self:new() + self:cron() end assert(self.instance ~= nil) return self.instance diff --git a/plugins/webstats/lua/webstats_worker.lua b/plugins/webstats/lua/webstats_worker.lua index 2eda941e6..53a4b0d8c 100644 --- a/plugins/webstats/lua/webstats_worker.lua +++ b/plugins/webstats/lua/webstats_worker.lua @@ -17,5 +17,4 @@ end if ngx.worker.id() == 0 then ngx.timer.every(60, webstats_cron_pre) - WS_C:cron() end \ No newline at end of file