summaryrefslogtreecommitdiffhomepage
path: root/libs/web/luasrc/dispatcher.lua
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-05-27 15:40:49 +0000
committerSteven Barth <steven@midlink.org>2008-05-27 15:40:49 +0000
commit6a0da42befb970b56f93c0bf109a9cb7475e8e0c (patch)
treea1a0feea2cb48e9e2a1a5f3747559abb676428bc /libs/web/luasrc/dispatcher.lua
parent882940a80782344e4a32479788b81da5c7e08621 (diff)
* Fixed caching mechanism
Diffstat (limited to 'libs/web/luasrc/dispatcher.lua')
-rw-r--r--libs/web/luasrc/dispatcher.lua6
1 files changed, 1 insertions, 5 deletions
diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua
index e76169d38f..6a6bceb29b 100644
--- a/libs/web/luasrc/dispatcher.lua
+++ b/libs/web/luasrc/dispatcher.lua
@@ -192,7 +192,7 @@ function createindex_plain(path, suffix)
end
end
- if not cachetime or luci.fs.mtime(path) > cachetime then
+ if not cachetime then
for i,c in ipairs(controllers) do
c = "luci.controller." .. c:sub(#path+1, #c-#suffix):gsub("/", ".")
stat, mod = pcall(require, c)
@@ -205,10 +205,6 @@ function createindex_plain(path, suffix)
end
end
end
- if indexcache then
- luci.fs.unlink(indexcache .. "/.index")
- luci.fs.writefile(indexcache .. "/.index", "")
- end
else
for i,c in ipairs(luci.fs.dir(indexcache)) do
if c:sub(1) ~= "." then