git.shiar.nl
/
sc2-widget
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9228e9
)
expire symlink requests by lstatted mtime
author
Mischa POSLAWSKY
<perl@shiar.org>
Wed, 24 Jul 2019 02:07:22 +0000
(
04:07
+0200)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Wed, 24 Jul 2019 02:07:22 +0000
(
04:07
+0200)
Support refreshing linked targets without changing original data.
widget.php
patch
|
blob
|
history
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;