Skip to content

Commit 474059a

Browse files
committed
refactor: use CACHE_DURATION constant
Signed-off-by: Michele Palazzi <sysdadmin@m1k.cloud>
1 parent f63392f commit 474059a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
}
2222

2323
// set cache to refresh once per day (24 hours)
24-
$cacheSeconds = 24 * 60 * 60;
24+
$cacheSeconds = CACHE_DURATION;
2525
header("Expires: " . gmdate("D, d M Y H:i:s", time() + $cacheSeconds) . " GMT");
2626
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
2727
header("Cache-Control: public, max-age=$cacheSeconds");

0 commit comments

Comments
 (0)