Skip to content

Commit 31be6fe

Browse files
committed
Reduce version cache lifetime to 3 hours
1 parent bd7ec42 commit 31be6fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func getLatestVersion() (string, error) {
8686
parts := strings.Split(string(content), "\n")
8787
if len(parts) >= 2 {
8888
cacheTime, err := strconv.Atoi(parts[0])
89-
if err == nil && time.Now().Unix()-int64(cacheTime) <= 60*60*24 {
89+
if err == nil && time.Now().Unix()-int64(cacheTime) <= 60*60*3 {
9090
return parts[1], nil
9191
}
9292
}

0 commit comments

Comments
 (0)