Skip to content

invalidate snippet cache when code changes #290

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

Merged
merged 5 commits into from
Oct 8, 2024

Conversation

Rich-Harris
Copy link
Member

closes #146. This adds some crude-but-working code that determines whether the code that renders snippets is more recent than the snippet cache, and if so destroys the cache. In theory this will give us the best of all worlds — we don't need to regenerate everything on sync-docs, but we will also avoid deploying stale snippets

Copy link

vercel bot commented Oct 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
omnisite ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 8, 2024 6:32pm

@Rich-Harris Rich-Harris merged commit 599677a into main Oct 8, 2024
3 checks passed
@Rich-Harris Rich-Harris deleted the snippet-cache-invalidation branch October 8, 2024 18:41
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.

Doc replacements are a one-time thing
2 participants