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

Evict cache after any execution which modify data #26

Open
duyp opened this issue Oct 24, 2018 · 0 comments
Open

Evict cache after any execution which modify data #26

duyp opened this issue Oct 24, 2018 · 0 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@duyp
Copy link
Owner

duyp commented Oct 24, 2018

There are a obvious issue we might have is: if we modify some entities such as close an issue, then user quickly refresh but cache data is returned in which the entity is old (from last refresh), therefore the modification will be reverted as cache data.

To resolve this, for any execution which modifies data, we must evict all retrofit cache by calling cache.evictAll()

@duyp duyp added bug Something isn't working enhancement New feature or request labels Oct 24, 2018
@duyp duyp changed the title Evict cache after any execution which modified data Evict cache after any execution which modify data Oct 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant