GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||
GeezerVison is showing github.com — feat(atlas-worker): add gated per-key cache purge by dezren39 · Pull Request #12393 · developing-today/code Conversation
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 38 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 4801d24f20
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| } | ||
| if (req.method === "POST" && url.pathname === "/purge") { | ||
| const existed = this.row() !== undefined; | ||
| this.state.storage.sql.exec("DELETE FROM entry WHERE id = 1"); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Serialize purge with in-flight cache fills
If a purge arrives while a same-key cache miss is awaiting embedQuery() or searchService(), this deletion removes the row that the suspended fill still expects. Those outbound-fetch awaits allow other Durable Object requests to execute; when the fill resumes, its UPDATE affects no rows and meta(this.row()!) throws, returning a 500 to the active search. If a post-purge search recreates the row first, the older fill can instead write its pre-purge result into the new entry, defeating invalidation indefinitely. Serialize purge with fills or use a generation identifier to prevent pre-purge operations from updating post-purge state.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
feat(atlas-worker): gated per-key purge route for the search cache (from #6805 policy)
There was an error while loading. Please reload this page.