From 776f9957d0376670e9d3e43677dbe3ba19ded193 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Wed, 28 May 2008 04:08:54 +0000 Subject: [PATCH] * Updated dispatching cache mechanism --- libs/sgi-haserl/root/www/cgi-bin/luci | 4 +++- libs/web/luasrc/dispatcher.lua | 3 --- 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 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 = {} -- 2.25.1