From 8b19cf1df05db2fa4e065c81d8baa19118ce559e Mon Sep 17 00:00:00 2001 From: Antun Skuric <36178713+askuric@users.noreply.github.com> Date: Mon, 22 Jul 2024 08:33:51 +0200 Subject: [PATCH] Update index.php --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index ed209c9..b786d35 100644 --- a/index.php +++ b/index.php @@ -18,7 +18,7 @@ function get_name($str) { } $cache_file = '/tmp/arduino_lib_' . md5($lib) . '.cache'; -if (file_exists($cache_file) && (time() - filemtime($cache_file) < 86000)) { +if (file_exists($cache_file) && (time() - filemtime($cache_file) < 6*60*60)) { // if 6 hours has passed from the last check // Use cached version if it's less than 1 day $data = json_decode(file_get_contents($cache_file), true); $name = $data['name'];