Update webstats_common.lua

This commit is contained in:
dami 2026-07-05 03:58:34 +08:00
parent 60958d1403
commit d1dcdd4f25
1 changed files with 3 additions and 4 deletions

View File

@ -92,6 +92,9 @@ function _M.getInstance(self)
end
function _M.start_cron(self)
if ngx.worker.id() ~= 0 then
return
end
self:cron()
end
@ -468,10 +471,6 @@ end
7.
]]
function _M.cron(self)
if ngx.worker.id() ~= 0 then
return
end
--[[
@param premature boolean