A user removed from a group with deleteUsers() will still appear to be in that

group according to Inbox.pm, User::getGroupIdsRecursive() and User::getGroups().
Groups.pm wasn't clearing the cache key "getGroupsForUser" in clearCaches().
Tests and fix.
This commit is contained in:
Scott Walters 2010-06-08 13:49:02 -04:00
parent 2c08b4e712
commit 867095d811
2 changed files with 9 additions and 4 deletions

View file

@ -282,6 +282,7 @@ sub clearCaches {
$session->stow->delete("groupObj");
$session->stow->delete("isInGroup");
$session->stow->delete("gotGroupsInGroup");
$session->stow->delete("gotGroupsForUser");
}
#-------------------------------------------------------------------