From ee93d2fc21f5ef7c37f856a74b55ece41918d864 Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 5 Nov 2022 23:34:52 +0800 Subject: [PATCH] Update webstats_common.lua --- plugins/webstats/lua/webstats_common.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/webstats/lua/webstats_common.lua b/plugins/webstats/lua/webstats_common.lua index a596dbf9f..fbc6d246e 100644 --- a/plugins/webstats/lua/webstats_common.lua +++ b/plugins/webstats/lua/webstats_common.lua @@ -47,9 +47,9 @@ function _M.getInstance(self) if rawget(self, "instance") == nil then rawset(self, "instance", self.new()) - if 0 == ngx.worker.id() then - self:cron() - end + -- if 0 == ngx.worker.id() then + self:cron() + -- end end assert(self.instance ~= nil) return self.instance