libs/web: fix index cache rebuild triggering (#275)
This commit is contained in:
parent
518dc0fef9
commit
253eafb577
1 changed files with 1 additions and 1 deletions
|
@ -437,7 +437,7 @@ function createindex_plain(path, suffixes)
|
||||||
if cachedate then
|
if cachedate then
|
||||||
local realdate = 0
|
local realdate = 0
|
||||||
for _, obj in ipairs(controllers) do
|
for _, obj in ipairs(controllers) do
|
||||||
local omtime = fs.stat(path .. "/" .. obj, "mtime")
|
local omtime = fs.stat(obj, "mtime")
|
||||||
realdate = (omtime and omtime > realdate) and omtime or realdate
|
realdate = (omtime and omtime > realdate) and omtime or realdate
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue