-
Notifications
You must be signed in to change notification settings - Fork 864
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
Fix persistent cache incorrectly having higher priority then auto fetch feed option #5743
Fix persistent cache incorrectly having higher priority then auto fetch feed option #5743
Conversation
I haven't tested it but looking at the code this pull request is wrong too, as it always bypasses the cache, but it is only supposed refresh automatically the first time you visit the subscription page in each window. E.g.
|
(A) Pre-persistent cache behaviour:
(B) Post-persistent cache behaviour, without this PR:
(C) Post-persistent cache behaviour, with this PR:
I think we probably need to agree on what to do on C1 before I can make further changes |
I think C1 should behave the same as it did before the persistent cache, as that's also what the description of the setting says. One way to implement it would be to add a boolean to the store e.g. We can of course agree on a different behaviour and change the description of the setting e.g. auto-refresh when the first window is opened/app started and after that just use the cache, even when new windows are opened |
What about profile switch? |
Before the persistent cache, it only refreshed when the profile changed if there were missing cache entries (it calls |
So what's expected is: Let me know if anything incorrect |
…etch feed option on new window open
73eb790
to
18b191d
Compare
Updated |
Pull Request Type
Related issue
closes #5724
Description
There is a bug introduced in #5185
The cache when available is showing cached entries instead of consulting auto fetch feed option first
This PR fixes it
Screenshots
Testing
(A) (from #5185)
Fetch Feed Automatically
(B) (missing test case in previous PR)
Fetch Feed Automatically
Desktop
Additional context