Fixed a problem where permissions and groups are still cached on a user object once a group has been removed or added to that user.