-
Notifications
You must be signed in to change notification settings - Fork 829
feat: auto-clear stale cache on server version change #3298
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
Open
jeanfbrito
wants to merge
22
commits into
master
Choose a base branch
from
feat/smart-cache-clear
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
307db21
feat: auto-clear cache and recreate webview on server version change
jeanfbrito 30667c0
fix: address review findings on cache-clear and webview-recreate paths
jeanfbrito e69e71f
revert: drop webview recreate path from cache-clear flow
jeanfbrito e842511
fix: guard auto cache-clear listener against uninitialized store
jeanfbrito 309436e
fix: prevent lost build signal and double cache-clear on commit-hash …
jeanfbrito 3685414
fix: propagate buildIdSource to prevent migration miss and version-st…
jeanfbrito 268f926
fix(cache): handle version-source legacy baseline and wrap clear fail…
jeanfbrito f55cac9
feat: add Meteor Autoupdate as third bundle-version signal source
jeanfbrito 1a4abf5
fix(servers): split lastServerBuildId into per-source baselines
jeanfbrito 14488e4
fix: close legacy-listener race and document cache_version cookie
jeanfbrito 8363000
fix(cache): hoist cacheVersion mismatch check above source-specific p…
jeanfbrito b26701a
fix(smart-cache-clear): address four auditor-surfaced bugs (C2/H1+M3/…
jeanfbrito 1a95af4
fix(cache-clear): queue in-flight signals and fix RC version comparison
jeanfbrito 2da0a6a
fix(cache): always dispatch on autoupdate signal; latest-wins pending…
jeanfbrito 07c4f9f
fix(autoupdate): edge-trigger guard prevents infinite reload loop
jeanfbrito 4b5f0cb
fix(smart-cache-clear): sentinel-aware autoupdate comparison in main …
jeanfbrito 610ff9c
test: tighten sentinel regex and add rejection cases
jeanfbrito a3f50c2
refactor(cache-clear): per-source pendingClears Map in main.ts (F1)
jeanfbrito e3f66d0
refactor(cache-clear): retire legacy WEBVIEW_GIT_COMMIT_HASH_CHECK li…
jeanfbrito b9cbcb2
fix: clear on first autoupdate observation, not adopt
jeanfbrito 31d3d3a
fix: prevent repeated smart cache clears
jeanfbrito 3be1cee
fix(cache-clear): align preload slotKey with main pendingKey
jeanfbrito File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| import { dispatch } from '../../store'; | ||
| import { WEBVIEW_SERVER_BUILD_CHECK } from '../../ui/actions'; | ||
| import { getServerUrl } from './urls'; | ||
|
|
||
| export const setServerBuildSignals = (signals: { | ||
| buildId?: string; | ||
| cacheVersion?: string; | ||
| }): void => { | ||
| const { buildId, cacheVersion } = signals; | ||
| if (!buildId && !cacheVersion) return; | ||
| dispatch({ | ||
| type: WEBVIEW_SERVER_BUILD_CHECK, | ||
| payload: { | ||
| url: getServerUrl(), | ||
| buildId, | ||
| cacheVersion, | ||
| }, | ||
| }); | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.