This commit is contained in:
midoks 2023-02-12 01:08:03 +08:00
parent c0c67095be
commit 7b962335e4
2 changed files with 1 additions and 1 deletions

View File

@ -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

View File

@ -17,5 +17,4 @@ end
if ngx.worker.id() == 0 then
ngx.timer.every(60, webstats_cron_pre)
WS_C:cron()
end