From bd0242db2fa04c4fc9c385799ac353d1ea018647 Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 17 Oct 2022 14:03:35 +0800 Subject: [PATCH] Update webstats_common.lua --- plugins/webstats/lua/webstats_common.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/webstats/lua/webstats_common.lua b/plugins/webstats/lua/webstats_common.lua index 5c5f4c04c..47d81eede 100644 --- a/plugins/webstats/lua/webstats_common.lua +++ b/plugins/webstats/lua/webstats_common.lua @@ -36,7 +36,7 @@ end function _M.getInstance(self) if rawget(self, "instance") == nil then rawset(self, "instance", self.new()) - self:cron() + -- self:cron() end assert(self.instance ~= nil) return self.instance @@ -136,8 +136,6 @@ function _M.cron(self) return true end - - local local_stmt2 = db:prepare[[INSERT INTO web_logs( time, ip, domain, server_name, method, status_code, uri, body_length, referer, user_agent, protocol, request_time, is_spider, request_headers, ip_list, client_port)