diff --git a/model/invalidation-cache/infinispan/src/main/java/org/keycloak/models/cache/infinispan/InfinispanRealmCache.java b/model/invalidation-cache/infinispan/src/main/java/org/keycloak/models/cache/infinispan/InfinispanRealmCache.java index ec93a7a3bb..735e72136e 100755 --- a/model/invalidation-cache/infinispan/src/main/java/org/keycloak/models/cache/infinispan/InfinispanRealmCache.java +++ b/model/invalidation-cache/infinispan/src/main/java/org/keycloak/models/cache/infinispan/InfinispanRealmCache.java @@ -110,7 +110,7 @@ public class InfinispanRealmCache implements RealmCache { @Override public void invalidateRole(CachedRole role) { logger.tracev("Removing role {0}", role.getId()); - cache.remove(role); + cache.remove(role.getId()); } @Override