Invalidating cache for findByowner
This commit is contained in:
parent
aaddb035a8
commit
7569493b17
1 changed files with 2 additions and 0 deletions
|
@ -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())));
|
||||
|
|
Loading…
Reference in a new issue