We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d026d8a commit 7e8e590Copy full SHA for 7e8e590
internal/update/cache.go
@@ -9,7 +9,7 @@ import (
9
10
const (
11
cacheFileName = ".update-check"
12
- cacheDuration = 24 * time.Hour
+ cacheDuration = 10 * time.Minute
13
)
14
15
// CacheEntry stores the last update check result
@@ -51,7 +51,7 @@ func SaveCache(homeDir string, entry *CacheEntry) error {
51
return os.WriteFile(path, data, 0644)
52
}
53
54
-// IsCacheValid returns true if cache is fresh (< 24h old)
+// IsCacheValid returns true if cache is fresh (< 10m old)
55
func IsCacheValid(entry *CacheEntry) bool {
56
return time.Since(entry.CheckedAt) < cacheDuration
57
0 commit comments