Report Cache Ignores the Date Range and Returns an Earlier Result
Level 2 · node · Data · Missing filter dimensions in cache key
Scenario
Sales reports are queried by accountId and date range. The cache key contains only accountId, so a later request for a different date range on the same account reuses the first result and returns the wrong total.
Requirements
- Reuse cache for the same account and same range - Different start date uses a separate entry - Different end date uses a separate entry - Different accounts remain isolated - Returned totals match repository data
Acceptance criteria
- Same account and range gets a cache hit
- Different start date does not reuse old range
- Different end date returns separate result
- Accounts do not share cache results
- Each range total matches repository data