Replies: 2 comments
-
Hello @gchallen! Thank you for opening this issue. I am convinced you configured everything well. I'll try to explain. When you call the If your page is updated after calling the |
Beta Was this translation helpful? Give feedback.
-
Thanks for the explanation. I did poke around the code a bit and noticed this logic maintaining the My use case is more or less what's described here: performing programmatic on-demand revalidation. Initially I was using the I don't fully understand the NextJS caching logic, but it does seem like there should be some way to force a page rebuild on the next load, without immediately triggering a page rebuild, which can cause an unnecessary load spike when revalidating many pages, particularly if some of them are infrequently accessed. Manually deleting the page from the Redis cache works for my use case, but only because I've disabled the in-memory caches entirely. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Brief Description of the Bug
Calling
revalidatePath
does not remove cached data from the Redis cache and force a rebuild of an ISR page.Severity
This seems like it should work.
Frequency of Occurrence
Always.
Steps to Reproduce
Provide detailed steps to reproduce the behavior, including any specific conditions or configurations where the bug occurs:
revalidatePath
in a route handler, for example in aPOST
method intended for on-demand revalidationExpected vs. Actual Behavior
revalidatePath
should remove the cached data and force the page to be rebuilt.Environment:
Attempted Solutions or Workarounds
Creating a Redis client and manually deleting the offending keys in the revalidation
POST
method seems to work.Impact of the Bug
Again, this seems like something that should work automatically. It's possible that I've misconfigured something, but my cache configuration is fairly simple.
Beta Was this translation helpful? Give feedback.
All reactions