-
Notifications
You must be signed in to change notification settings - Fork 141
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 not updating #1188
Comments
This sounds very much related to #1187 |
Right! I had assumed that #1187 was specifically about files or something different than JSON objects but perhaps it's the same thing. If you want me to close this one let me know. |
That's actually the default for the GET functions. |
I tried toggling I tried running It seemed that the items listed as false don't appear in |
re: #1187
i just synced a large number of items to firefox after not logging in for a few days and noticed that they seem to be there as expected, including after a refresh. hard to know if it's 'in the state where this issue normally happens' (which i have not been able to define until now) but i think this means my issues are a safari bug. will err on closing this. not sure about the other issue. |
ok, i had initially tried it in hyperdraft. i just tried the same thing in joybox (syncing after a few weeks, lots of changes coming in) and after refreshing the page (maybe too soon) it seems like i'm missing some documents. if i create a new document in safari, wait for the sync, and then refresh the page, the new document remains. but other ones remain invisible after sync. not sure what to make of any of this. |
What does "invisible" mean in that case? |
not accessible via the app, may or may not be in indexeddb but the i think app either doesn't receive it or receives the object as "true" when loading from cache. |
Without knowing the state of the object in IndexedDB at that time, it's not really possible to debug I'm afraid. Some kind of reproducible test case would be extremely useful. |
just tried getting on firefox:
on safari:
i still don't know how to reproduce this state, other than 'use it a lot with safari on multiple devices and after a while newly synced items will become |
sorry i just edited this like 4 times, please see the latest version on github |
I have noticed for months a somewhat difficult to replicate bug where some objects tend to not sync to every device – for example, I create several documents on Device A and only some of them appear on Device B. It might be when creating many documents in a shorter period (like once when I created twenty documents and only a dozen or so appeared on other devices). Currently observing this in my flashcards app where an entire deck of card objects is not appearing on one device after days of making changes and adding child objects. I wonder if this is because the corresponding deck folder for 01ECKAHNGHTDKDJK2WJ7A7G7DC in
local.itemsMap
is listed as false:I have been setting
maxAge
ubiquitously tofalse
to always read from cache, and I usecaching.enable('/kommit/')
which I believe translates to using theALL
strategy of 'keep a local copy of everything and update as necessary'. I don't understand why certain documents get stuck in this state. I can even edit the document on Device A to trigger some changes but it still doesn't appear on Device B. I usually disconnect and re-connect storage, or delete and re-create the document to get around this, but I'm wondering if there's a way to force the cache to 'get whatever isn't local' even after selecting theALL
strategy?As an aside, in the screenshot above there seem to be six folders (or six 'decks') but there are currently only three:
I'm wondering if this is a bug or because I have done something strange with caching.
The text was updated successfully, but these errors were encountered: