git.shiar.nl
/
sc2-widget
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
expire symlink requests by lstatted mtime
[sc2-widget]
/
widget.php
diff --git
a/widget.php
b/widget.php
index d1b3b88b960c9e262245ad523552a680ebf24169..463ff67f1fef13c14182736797e4aa493c1a99fe 100644
(file)
--- a/
widget.php
+++ b/
widget.php
@@
-19,7
+19,7
@@
function error($message, $status = 500)
$request = trim($_SERVER['PATH_INFO'], '/');
$target = "data/$request.json";
-$last = file_exists($target) ?
filemtime($target)
: 0;
+$last = file_exists($target) ?
lstat($target)['mtime']
: 0;
if ($last < time() - 3600) {
$recipe = NULL;