From 45319b232bc331492dd98e474c9ea60a9a70bc8f Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Fri, 5 Sep 2008 18:34:56 +0000 Subject: [PATCH] Heavy memory/performance optimizations #2 --- libs/web/luasrc/config.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/web/luasrc/config.lua b/libs/web/luasrc/config.lua index 12d7e8c917..dd3e01734e 100644 --- a/libs/web/luasrc/config.lua +++ b/libs/web/luasrc/config.lua @@ -34,5 +34,5 @@ local require = require module "luci.config" pcall(function() - util.update(_M, require "luci.model.uci".cursor():get_all("luci")) + setmetatable(_M, {__index=require "luci.model.uci".cursor():get_all("luci")}) end) -- 2.30.2