-
-
Notifications
You must be signed in to change notification settings - Fork 184
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
We need to find a way to manually refresh the next.js cache #1277
Comments
@okdv I remember you did some research on this right? |
@dadiorchen ah yes, if i remember correctly we could create an endpoint that would manually refresh the cache for a specified page. there may also be a way to not cache the page at all if it routes to a 404 or something- but im not sure, i would need to look into that some more been away working on a private contract so havent had much time for side stuff lately, but that contract should be done in about a week and i'll be back contributing some more 😄 let me look into this in the meantime and see what i can find |
@okdv will you be back soon? 😟 Like @okdv said, We could make an endpoint to manually refresh it on demand but it seems that the organization page get the values from props which is already set up to revalidate every 43.2 seconds or defaults to 30s if the env for cache revalidation is not provided. Do you want me to reduce the time for the cache to revalidate. Also, how do I create and delete an organization? I want to reproduce the bug, but FCC is already established so I can't reproduce with the same example @dadiorchen |
#1020 is the PR I had for this a while ago but forgot to fix the wrong HTTP error code just updated that and submitted the PR for review sorry holiday season has been crazier than expected 😄 |
Actually the revalidate time now is 24 hours, we need to be so so we get better performance, this is just the difficulty we need to solve, setting a cache in normal, but need a special way to kick out it and refresh the page. |
@dadiorchen makes sense for the cache timing. Does that endpoint satisfy the needs as far as cache revalidation goes? Or should there be some additional functionality to it? |
I just encountered this problem:
We need to find a way to trigger the refresh and correct the 404 failure.
Some hints:
The text was updated successfully, but these errors were encountered: