Skip to content

fix(fmt): avoid reading unsupported cache misses - #226

Merged
chenjiahan merged 1 commit into
mainfrom
chenjiahan/fix-fmt-cache-unsupported-read
Aug 7, 2026
Merged

fix(fmt): avoid reading unsupported cache misses#226
chenjiahan merged 1 commit into
mainfrom
chenjiahan/fix-fmt-cache-unsupported-read

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

This PR prevents cache misses for unsupported files from reading their contents before parser support is known, preserving the previous behavior for unreadable unknown paths. Cache lookups still pre-read only when an existing entry and matching options can produce a hit; supported misses read and hash once after parser resolution, so the hot cache path remains unchanged.

Related Links

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: a2e2c7a
Status: ✅  Deploy successful!
Preview URL: https://a8c6b185.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-fix-fmt-cache-uns.rstack-cli.pages.dev

View logs

@chenjiahan
chenjiahan merged commit e473259 into main Aug 7, 2026
4 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/fix-fmt-cache-unsupported-read branch August 7, 2026 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant