fix: correct cache hit rate denominator #24

Merged
razvandimescu merged 1 commits from fix/cache-hit-rate-denominator into main 2026-03-30 05:17:40 +08:00
razvandimescu commented 2026-03-30 05:04:41 +08:00 (Migrated from github.com)

Summary

  • The cache hit rate was computed as cached / (cached + forwarded + local + overridden), excluding recursive and coalesced queries from the denominator
  • This inflated the displayed rate (e.g. 57.9%) far above the actual cache proportion shown in the resolution paths chart (20.9%)
  • Added recursive and coalesced to the denominator so the cache hit rate reflects the true ratio against all successfully resolved queries

Test plan

  • Open dashboard and verify cache hit rate is consistent with the Cached bar in resolution paths
  • Confirm rate excludes only blocked and error queries from the denominator

🤖 Generated with Claude Code

## Summary - The cache hit rate was computed as `cached / (cached + forwarded + local + overridden)`, excluding recursive and coalesced queries from the denominator - This inflated the displayed rate (e.g. 57.9%) far above the actual cache proportion shown in the resolution paths chart (20.9%) - Added `recursive` and `coalesced` to the denominator so the cache hit rate reflects the true ratio against all successfully resolved queries ## Test plan - [ ] Open dashboard and verify cache hit rate is consistent with the Cached bar in resolution paths - [ ] Confirm rate excludes only blocked and error queries from the denominator 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.