From: Steven Barth Date: Wed, 28 May 2008 04:08:54 +0000 (+0000) Subject: * Updated dispatching cache mechanism X-Git-Tag: 0.8.0~972 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=776f9957d0376670e9d3e43677dbe3ba19ded193;p=oweals%2Fluci.git * Updated dispatching cache mechanism --- diff --git a/libs/sgi-haserl/root/www/cgi-bin/luci b/libs/sgi-haserl/root/www/cgi-bin/luci index 13fec754e..ab2a3e18f 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 202e07332..fc551a4bd 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 = {}