diff --git a/model/infinispan/src/main/java/org/keycloak/models/authorization/infinispan/CachedResourceStore.java b/model/infinispan/src/main/java/org/keycloak/models/authorization/infinispan/CachedResourceStore.java index d94ccd8a4c..bc892d0e51 100644 --- a/model/infinispan/src/main/java/org/keycloak/models/authorization/infinispan/CachedResourceStore.java +++ b/model/infinispan/src/main/java/org/keycloak/models/authorization/infinispan/CachedResourceStore.java @@ -55,6 +55,8 @@ public class CachedResourceStore extends AbstractCachedStore implements Resource addInvalidation(getCacheKeyForResource(resource.getId())); addInvalidation(getCacheKeyForResourceName(resource.getName())); + addInvalidation(getCacheKeyForOwner(owner)); + getCachedStoreFactory().getPolicyStore().addInvalidations(resource); getTransaction().whenRollback(() -> removeCachedEntry(resourceServer.getId(), getCacheKeyForResource(resource.getId())));