Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[clan] updating a clan will not purge the cache #812

Open
fcaps opened this issue Dec 10, 2023 · 3 comments
Open

[clan] updating a clan will not purge the cache #812

fcaps opened this issue Dec 10, 2023 · 3 comments

Comments

@fcaps
Copy link
Contributor

fcaps commented Dec 10, 2023

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

@Brutus5000
Copy link
Member

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.

@Sheikah45
Copy link
Member

Why not just use @CacheEvict on the method?

@Brutus5000
Copy link
Member

That might work too. Not the expert on caching

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants