cache: Short TTL negative cache for 404/410 depot objects #50
No reviewers
Labels
No labels
blocked
bug
draft
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
s1d3sw1ped/steamcache2!50
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "cache/negative-ttl-404"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
A 404/410 depot chunk was re-fetched on every miss, hammering Steam for definitive gone objects while looking like normal cache misses.
What changed
expires-unixfield; positives stay 3-field)./metricscounternegative_cache_hits(also still counts ascache_hits).cache.negative_ttl(Go duration, default5m;0/0sdisables storing).How tested
go test -count=1 ./steamcache/ ./config/on jumpbox (pass)TestNegativeCache404: first 404 hits upstream once; second within TTL does not;negative_cache_hitspresentRisks / rollback
cache.negative_ttl: 0s.Fixes #40
Waterfall
Produced by xAI grok (waterfall step 1:
grok -p --effort medium).