You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1Panel/plugins/openresty/waf/init.lua

22 lines
333 B

local db = require "db"
local config = require "config"
local mlcache = require "resty.mlcache"
local cache, err = mlcache.new("config", "waf", {
lru_size = 1000,
ipc_shm = "ipc_shared_dict",
})
if not cache then
error("could not create mlcache: " .. err)
end
_G.cache = cache
config.load_config_file()
db.init()