Next.js Discord

Discord Forum

Nested cached Function always Revalidates

Unanswered
Hudsonian Godwit posted this in #help-forum
Open in Discord
Hudsonian GodwitOP
[index.ts](https://github.com/xspooky7/strava-tailwind/blob/main/src/features/tables/tailwind/server/index.ts) is cached for 120 seconds which works
[meteo-requests.ts](https://github.com/xspooky7/strava-tailwind/blob/main/src/features/tables/tailwind/server/meteo-request.ts) which is nested within, should be revalidated after 600s, but it is revalidated everytime index.ts is as well, even though the gridKey (key parts) are identical.

Tested it in development and production.

0 Replies