Merge pull request #2001 from stianst/master

KEYCLOAK-2278
This commit is contained in:
Stian Thorgersen 2016-01-11 11:41:15 +01:00
commit 2ec4cb82cc

View file

@ -81,11 +81,8 @@ public class InfinispanUserCache implements UserCache {
@Override @Override
public void invalidateRealmUsers(String realmId) { public void invalidateRealmUsers(String realmId) {
logger.tracev("Invalidating users for realm {0}", realmId); logger.tracev("Invalidating users for realm {0}", realmId);
for (Map.Entry<String, CachedUser> u : cache.entrySet()) {
if (u.getValue().getRealm().equals(realmId)) { cache.clear();
cache.remove(u.getKey());
}
}
} }
@Override @Override