Skip to content

Commit caeb5bf

Browse files
committed
update cache
1 parent 8b30677 commit caeb5bf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/functional/NewUserTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ private function ensureUserDoesNotExist()
116116
$all_users_group->write();
117117
assert(!in_array($USER->uid, $all_users_group->getAttribute("memberuid")));
118118
}
119+
$REDIS->removeCacheArray("sorted_users", "", $USER->uid);
119120
}
120121

121122
private function ensureOrgGroupDoesNotExist()
@@ -126,6 +127,7 @@ private function ensureOrgGroupDoesNotExist()
126127
$org_group->delete();
127128
assert(!$org_group->exists());
128129
}
130+
$REDIS->removeCacheArray("sorted_orgs", "", $org_group->gid);
129131
}
130132

131133
private function ensureUserNotInPIGroup(UnityGroup $pi_group)
@@ -135,6 +137,7 @@ private function ensureUserNotInPIGroup(UnityGroup $pi_group)
135137
$pi_group->removeUser($USER);
136138
assert(!$pi_group->userExists($USER));
137139
}
140+
$REDIS->removeCacheArray($pi_group->gid, "members", $USER->uid);
138141
}
139142

140143
private function ensurePIGroupDoesNotExist()
@@ -144,6 +147,7 @@ private function ensurePIGroupDoesNotExist()
144147
$LDAP->getPIGroupEntry($USER->getPIGroup()->gid)->delete();
145148
assert(!$USER->getPIGroup()->exists());
146149
}
150+
$REDIS->removeCacheArray("sorted_groups", "", $gid);
147151
}
148152

149153
public function testCreateUserByJoinGoupByPI()

0 commit comments

Comments
 (0)