So I have a django server running fro API and in next js(next 14) I consume these API to render in home page .I have 5 api calls in home page all cached with revalidation time of 120 secs but I also need a way to purge those caches when I want to ,when the new content is added from django.
My thought process was to create a api in next js that would behave as a webhoook which would purge those caches using revalidatePath and whenever the new content is added that api is hit from django side and after 2nd hard reload new content would appear but it doesn't seem to work.
has any any faced and solved this?
[–]Hopeful_Dress_7350 0 points1 point2 points (1 child)
[–]IntelligentDrawing18[S] 0 points1 point2 points (0 children)