[BUG] Team summary cache not refreshed after PTO approval #30

Closed
opened 2026-02-20 03:15:47 +00:00 by santhoshj · 0 comments
Owner

Problem: Calendar shows PTO-adjusted capacity for a member, but Summary tab still shows stale pre-approval totals.\n\nRoot cause:\n- PTO approval only invalidated team-member cache keys\n- Team and revenue monthly aggregate cache keys remained stale\n\nFix:\n- Invalidate month-level capacity and revenue caches for all affected months during PTO approval\n- Added feature regression test: 4.1.19 PTO approval invalidates team and revenue caches

Problem: Calendar shows PTO-adjusted capacity for a member, but Summary tab still shows stale pre-approval totals.\n\nRoot cause:\n- PTO approval only invalidated team-member cache keys\n- Team and revenue monthly aggregate cache keys remained stale\n\nFix:\n- Invalidate month-level capacity and revenue caches for all affected months during PTO approval\n- Added feature regression test: 4.1.19 PTO approval invalidates team and revenue caches
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: santhoshj/headroom#30