* Fixed caching mechanism
This commit is contained in:
parent
882940a807
commit
6a0da42bef
1 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue