Skip to content
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

add admin area for one-off global cache invalidations #105

Merged
merged 1 commit into from
Jan 12, 2025

Conversation

stilt0n
Copy link
Owner

@stilt0n stilt0n commented Jan 12, 2025

closes #101

What I Did

Certain tags weren't showing up on recipes. When I looked into why this is it seems like is a caching issue:

When recipes are edited, the cache for the edited recipe pages needs to be revalidated. When it is not, the tags never show up because the stale page is sent instead.

This is something I already added to recipe edits a while back. The issue now is that if a recipe was last edited before this bug was fixed, those edits will never show up without a new edit.

This change adds an admin page with a button to invalidate all caches. This will allow the caches to be reset and prevent pages from being stale. Since cache revalidation is built in to edits now this should not be necessary more than once unless another mistake is made further down the road.

@stilt0n stilt0n added the bug Something isn't working label Jan 12, 2025
@stilt0n stilt0n self-assigned this Jan 12, 2025
Copy link

vercel bot commented Jan 12, 2025

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

Name Status Preview Comments Updated (UTC)
grits-greenbeans-and-grandmothers ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 12, 2025 4:52am

@stilt0n stilt0n merged commit d514d89 into main Jan 12, 2025
6 checks passed
@stilt0n stilt0n deleted the fix-missing-labels branch January 12, 2025 04:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Desserts tag not showing up on single tag recipes
1 participant