Skip to content

Commit 8b19cf1

Browse files
authored
Update index.php
1 parent b94d54f commit 8b19cf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function get_name($str) {
1818
}
1919
$cache_file = '/tmp/arduino_lib_' . md5($lib) . '.cache';
2020

21-
if (file_exists($cache_file) && (time() - filemtime($cache_file) < 86000)) {
21+
if (file_exists($cache_file) && (time() - filemtime($cache_file) < 6*60*60)) { // if 6 hours has passed from the last check
2222
// Use cached version if it's less than 1 day
2323
$data = json_decode(file_get_contents($cache_file), true);
2424
$name = $data['name'];

0 commit comments

Comments
 (0)