Does the nextjs extends cache in instrumentation as well ?
Unanswered
Burmese posted this in #help-forum
BurmeseOP
So I am doing few fetch calls in instrumentation hook. I was looking throught docs to figureout if they are cached or not (or can I cache /revalidate these fetch). Can find any information but from my behaviour it seems that they are not cached. Am i right ? What if I have cache_unstable inside instrumentation ?
1 Reply
@Burmese So I am doing few fetch calls in instrumentation hook. I was looking throught docs to figureout if they are cached or not (or can I cache /revalidate these fetch). Can find any information but from my behaviour it seems that they are not cached. Am i right ? What if I have cache_unstable inside instrumentation ?
instrumentation is afaik separate from the app router, so unstable_cache which is specific to the app router likely doesn't work there.
but there is only one way to know for sure. try it.
but there is only one way to know for sure. try it.