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

Revalidate cache in statistic API #126

Open
mazipan opened this issue Oct 23, 2023 · 0 comments
Open

Revalidate cache in statistic API #126

mazipan opened this issue Oct 23, 2023 · 0 comments
Labels
enhancement New feature or request hacktoberfest

Comments

@mazipan
Copy link
Owner

mazipan commented Oct 23, 2023

Is your feature request related to a problem? Please describe.
Next.js will automatically cache the fetch in the server, we already set the cache key/tag for the statistics API. But never have a revalidation.

Ideally, we need to revalidate after new user is registered successfully.

And every new questions submitted.

Describe the solution you'd like

https://nextjs.org/docs/app/building-your-application/data-fetching/fetching-caching-and-revalidating#revalidating-data

@mazipan mazipan added enhancement New feature or request hacktoberfest labels Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest
Projects
None yet
Development

No branches or pull requests

1 participant