summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-11-11 11:47:50 +0800
committerEltrac <hi@guhub.cn>2025-11-11 11:47:50 +0800
commit557f8d18cf98608a7b1878cb738c60e93c270bdc (patch)
tree543d6a6d49070572ae3ba8bbf49dfa80fadbbefd
parentc996508bf1e15b78a1e2580a48c82132ea6f3a4b (diff)
perf(cache): shorten cacheTTL to 3 days
-rw-r--r--brewcheck.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/brewcheck.go b/brewcheck.go
index 8223aff..51d8e17 100644
--- a/brewcheck.go
+++ b/brewcheck.go
@@ -11,7 +11,7 @@ import (
"github.com/fatih/color"
)
-const cacheTTL = 7 * 24 * time.Hour
+const cacheTTL = 3 * 24 * time.Hour // 3 days
func EnsureBrewAvailable() {
cacheFile := filepath.Join(xdg.CacheHome, "wthis", "brew-checked")