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

🐛 Fix Next.js Caching Issue with global Data Not Revalidating #556

Open
3 tasks
JackDevAU opened this issue Oct 16, 2024 · 0 comments
Open
3 tasks

🐛 Fix Next.js Caching Issue with global Data Not Revalidating #556

JackDevAU opened this issue Oct 16, 2024 · 0 comments
Assignees

Comments

@JackDevAU
Copy link
Member

CC: @wicksipedia @adamcogan @JeanThirion @sethdaily @Freego1783

Description

Next.js caching is not revalidating properly when the global data is updated in TinaCMS. Although the updates are successfully saved in the content files, the changes do not immediately appear on the site. Two temporary solutions have been identified:

  1. Using revalidatePath to force a page re-render:- revalidate path if in edit mode - "essentially disable cache" #555
  2. Disabling cache in the browser's network tab to bypass the issue.

A long-term fix is needed to ensure that content updates are reflected without requiring manual steps.

Acceptance Criteria

  • Investigate the issue with Next.js cache and revalidation in development.
  • Fix the problem preventing edits from appearing in TinaCMS.
  • Test across multiple browsers to ensure the issue is resolved.
2024-10-16.11-29-39.mp4

Figure: Problem + "Disable cache" Fix

@JackDevAU JackDevAU self-assigned this Oct 16, 2024
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

No branches or pull requests

1 participant