gregrickaby / nextjs-wordpress

💀 It's headless WordPress!
https://nextjswp.com
MIT License
245 stars 50 forks source link

Refresh post #142

Closed axelverglas closed 8 months ago

axelverglas commented 8 months ago

Congratulation for this amazing project !! I have a cache problem I think because my posts don't update on my site as soon as I post one except when I force dynamic reloading...

gregrickaby commented 8 months ago

@axelverglas I've adjusted the revalidate route to bust all cache in this commit https://github.com/gregrickaby/nextjs-wordpress/commit/bddd6bbefa555c9401ab0967c14162ad03519b88

On other projects I run, I've found the best way to revalidate is to revalidate all paths.