1 -- Copyright 2008 Steven Barth <steven@midlink.org>
2 -- Licensed to the public under the Apache License 2.0.
4 local util = require "luci.util"
7 if pcall(require, "luci.model.uci") then
8 local config = util.threadlocal()
10 __index = function(tbl, key)
11 if not config[key] then
12 config[key] = luci.model.uci.cursor():get_all("luci", key)