Update webstats_common.lua

This commit is contained in:
dami 2026-07-05 03:56:13 +08:00
parent 5530b14f36
commit 60958d1403
1 changed files with 4 additions and 0 deletions

View File

@ -131,6 +131,7 @@ function _M.initDB(self, input_sn)
db:exec([[PRAGMA page_size = 32768]])
db:exec([[PRAGMA journal_mode = wal]])
db:exec([[PRAGMA journal_size_limit = 21474836480]])
db:exec([[PRAGMA busy_timeout = 5000]])
return db
end
@ -467,6 +468,9 @@ end
7.
]]
function _M.cron(self)
if ngx.worker.id() ~= 0 then
return
end
--[[