summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-05-28 04:08:54 +0000
committerSteven Barth <steven@midlink.org>2008-05-28 04:08:54 +0000
commit776f9957d0376670e9d3e43677dbe3ba19ded193 (patch)
tree06cc4216a1987ac09b6f34b689a5b7b9374c43d0
parentc59a7afe452486a92d8c5f57f09c96519a2137ed (diff)
* Updated dispatching cache mechanism
-rwxr-xr-xlibs/sgi-haserl/root/www/cgi-bin/luci4
-rw-r--r--libs/web/luasrc/dispatcher.lua3
2 files changed, 3 insertions, 4 deletions
diff --git a/libs/sgi-haserl/root/www/cgi-bin/luci b/libs/sgi-haserl/root/www/cgi-bin/luci
index 13fec754e3..ab2a3e18ff 100755
--- a/libs/sgi-haserl/root/www/cgi-bin/luci
+++ b/libs/sgi-haserl/root/www/cgi-bin/luci
@@ -1,2 +1,4 @@
#!/usr/bin/haserl --shell=luac
-require("luci.dispatcher").httpdispatch() \ No newline at end of file
+require("luci.dispatcher")
+luci.dispatcher.indexcache = "/tmp/.luciindex"
+luci.dispatcher.httpdispatch() \ No newline at end of file
diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua
index 202e073321..fc551a4bde 100644
--- a/libs/web/luasrc/dispatcher.lua
+++ b/libs/web/luasrc/dispatcher.lua
@@ -34,9 +34,6 @@ local tree = {nodes={}}
-- Index table
local index = {}
--- Indexdump
-local indexcache = "/tmp/.luciindex"
-
-- Global request object
request = {}