Details
Description
The cache generation is used to decide whether user documents obtained during two separate calls are still "fresh". The generation is incremented whenever an "invalidating" event occurs, such as a user update, or a role deletion, etc. However, we're currently incrementing on user acquisition, which doesn't affect persisted state. This is probably harming our cache use, and causing mongos to frequently re-acquire user data.