Page MenuHomePhabricator

Fix two Calendar availability cache issues

Authored by epriestley on May 1 2017, 5:40 PM.
Referenced Files
Unknown Object (File)
Sat, Nov 25, 1:10 PM
Unknown Object (File)
Tue, Nov 21, 11:26 PM
Unknown Object (File)
Wed, Nov 15, 5:17 AM
Unknown Object (File)
Oct 24 2023, 10:59 AM
Unknown Object (File)
Oct 23 2023, 8:41 AM
Unknown Object (File)
Oct 8 2023, 8:07 AM
Unknown Object (File)
Sep 12 2023, 5:35 AM
Unknown Object (File)
Sep 6 2023, 7:10 AM



Fixes T12661.

When changing the start date of an event from some time in the past to some time significantly in the future (more than 24 hours), we'd invalidate only future caches and leave users in an "away" state. Instead, just invalidate all past and future caches (this is simpler than trying to figure out a narrower window, and should not make us do too much extra work).

When uninviting users from events, their caches also didn't get cleared correctly. Instead, clear them.

Test Plan
  • Changed an event from "Apr 1 - June 1" to "May 15 - June 1", saw availablity clear properly.
  • Uninvited user @dog from an ongoing event, saw availability clear properly.

Diff Detail

rP Phabricator
Lint Not Applicable
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.May 1 2017, 5:41 PM
This revision was automatically updated to reflect the committed changes.