Skip to content

perf(fmt): skip indexing stale cache files - #346

Merged
chenjiahan merged 1 commit into
mainfrom
chenjiahan/perf-fmt-cache-namespace
Aug 13, 2026
Merged

perf(fmt): skip indexing stale cache files#346
chenjiahan merged 1 commit into
mainfrom
chenjiahan/perf-fmt-cache-namespace

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

This PR avoids rebuilding formatter cache indexes when the persisted cache namespace no longer matches the current Rstack and Prettier versions. The expected namespace is now validated during parsing, before allocating the options and file lookup maps.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0bc3b6c
Status: ✅  Deploy successful!
Preview URL: https://0f17836c.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-perf-fmt-cache-na.rstack-cli.pages.dev

View logs

@chenjiahan
chenjiahan merged commit 7c836cc into main Aug 13, 2026
5 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/perf-fmt-cache-namespace branch August 13, 2026 05:58
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