projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
882940a
)
* Fixed caching mechanism
author
Steven Barth
<steven@midlink.org>
Tue, 27 May 2008 15:40:49 +0000
(15:40 +0000)
committer
Steven Barth
<steven@midlink.org>
Tue, 27 May 2008 15:40:49 +0000
(15:40 +0000)
libs/web/luasrc/dispatcher.lua
patch
|
blob
|
history
diff --git
a/libs/web/luasrc/dispatcher.lua
b/libs/web/luasrc/dispatcher.lua
index e76169d38f06d329cf4dd2a740128ed01f9732d5..6a6bceb29b5a9e4e125d009317953e0b78ee5a17 100644
(file)
--- 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