We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b94d54f commit 8b19cf1Copy full SHA for 8b19cf1
index.php
@@ -18,7 +18,7 @@ function get_name($str) {
18
}
19
$cache_file = '/tmp/arduino_lib_' . md5($lib) . '.cache';
20
21
-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
22
// Use cached version if it's less than 1 day
23
$data = json_decode(file_get_contents($cache_file), true);
24
$name = $data['name'];
0 commit comments