Skip to content

Commit 8e1c2a1

Browse files
committed
Change ttl to 30 days
1 parent aba4ebe commit 8e1c2a1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/lock/resolve.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ func lockFlake(ctx context.Context, ref flake.Ref) (flake.Ref, error) {
223223

224224
var meta nix.FlakeMetadata
225225
var err error
226-
// For nixpkgs, we cache resolutions (currently flakeCacheTTL=90 days) to avoid downloading
226+
// For nixpkgs, we cache resolutions (currently flakeCacheTTL=30 days) to avoid downloading
227227
// new nixpkgs too often which is really slow and rarely changes anything.
228228
//
229229
// Ideally we can do something similar for all packages (flake and otherwise)

internal/nix/flake.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"go.jetify.com/pkg/filecache"
1010
)
1111

12-
const flakeCacheTTL = time.Hour * 24 * 90
12+
const flakeCacheTTL = time.Hour * 24 * 30
1313

1414
var flakeFileCache = filecache.New[FlakeMetadata]("devbox/flakes")
1515

0 commit comments

Comments
 (0)