Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
patriot1burke committed Oct 20, 2017
1 parent 54ebc21 commit 92245e3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ public void roleRemoval(String id, String roleName, String roleContainerId, Set<
}

public void groupQueriesInvalidations(String realmId, Set<String> invalidations) {
invalidations.add(RealmCacheSession.getGroupsQueryCacheKey(realmId));
invalidations.add(RealmCacheSession.getTopGroupsQueryCacheKey(realmId));
addInvalidations(GroupListPredicate.create().realm(realmId), invalidations);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,12 @@ public void testDailyEviction() {
testRealmResource().components().component(propProviderRWId).update(propProviderRW);

// now
testingClient.server().run(session -> {
RealmModel realm = session.realms().getRealmByName("test");
UserModel user = session.users().getUserByUsername("thor", realm);
});

// run twice to make sure its in cache.
testingClient.server().run(session -> {
RealmModel realm = session.realms().getRealmByName("test");
UserModel user = session.users().getUserByUsername("thor", realm);
Expand Down

0 comments on commit 92245e3

Please sign in to comment.