Update webstats_common.lua

pull/216/head
midoks 3 years ago
parent 0ad5e74fae
commit 0eccebd9da
  1. 4
      plugins/webstats/lua/webstats_common.lua

@ -47,9 +47,9 @@ function _M.getInstance(self)
if rawget(self, "instance") == nil then if rawget(self, "instance") == nil then
rawset(self, "instance", self.new()) rawset(self, "instance", self.new())
if 0 == ngx.worker.id() then -- if 0 == ngx.worker.id() then
self:cron() self:cron()
end -- end
end end
assert(self.instance ~= nil) assert(self.instance ~= nil)
return self.instance return self.instance

Loading…
Cancel
Save