1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-31 14:08:06 +08:00

22 lines
333 B
Lua
Raw Normal View History

2024-02-28 14:34:09 +08:00
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
2024-02-28 14:34:09 +08:00
config.load_config_file()
2024-03-04 16:53:06 +08:00
db.init()
2024-02-28 14:34:09 +08:00