-
Notifications
You must be signed in to change notification settings - Fork 83
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
Cache.js deletes element while waiting: necessary? #117
Comments
I too experienced a lot of grief while listening to updates because of this; ended up having to remove that line. I understand that the reason for deletion is that the But in my opinion, fetching an obsolete item is not much worse than a cache miss that could maybe possibly happen in a really really small window of time before the |
Personal opinion, I don't see why we go ahead and assume the "best" with |
Previous behaviour was to remove the item while waiting for return from the master store. Now Cache will presume the update will complete and only remove the item if the master store rejects the `put`. Fixes #117
Hi,
Cache.js has the following lines:
That
cachingStore.remove
is giving me a lot of grief, because I am listening toupdate
events:And the problem is that when the listener runs, the cache is effectively missing the element (and I need it to be there).
Why are we deleting that element? This is what used to happen with Dojo's store... but is it strictly necessary? Isn't it a borderline bug, to have an incomplete cache for cached stores? Is there any chance we could make that deletion optional? (it really throws a spanner in the works for me)
The text was updated successfully, but these errors were encountered: