faf-java-api
faf-java-api copied to clipboard
[clan] updating a clan will not purge the cache
there is an ux issue if the clan is getting updated (join/leave/edit) if will not show up directly due a 5min cache in elide. is there something we can do without making it too complex?
the endpoint i am talking about /data/clan/${id}?include=memberships.player
In the ClanService you need to inject the CacheManager and when you create/update/delete a clan, you need to get the cache with key Clan.TYPE_NAME and clear it.
Why not just use @CacheEvict on the method?
That might work too. Not the expert on caching