Next.js Discord

Discord Forum

Debugging ISR with NEXT_PRIVATE_DEBUG_CACHE, how does fetch/API_ROUTE/API_PAGE logs work ?

Unanswered
Russian Toy posted this in #help-forum
Open in Discord
Russian ToyOP
Hi, I am on Next 15.1.5 and I struggle to understand precisely how fetch calls (and API_ROUTE/API_PAGE) works while debugging ISR with NEXT_PRIVATE_DEBUG_CACHE. See enclosed screenshot, I count 3 types of logs on this next build command :
1 - file system cache : using filesystem cache handler
2 - memory store :using memory store for fetch cache
3 - fetch call : get 55417f04cca1f8ea928c27d3f5a9d42586de82226066afb94b004b402ac63b7a [ 'global' ] FETCH false

I think i understood the 1 and 2 logs as they are pretty clear. But regarding the 3rd log, i don't get the precise meaning. Here's what i think i know from this point :
- get (the cache method, which could be also set)
- 55417f04cca1f8ea... (the path or the id of the cached fetch)
- [ 'global' ] (or the tag which could be undefined if it's coming from APP_PAGE / APP_ROUTER)
- FETCH (source of data that could be FETCH / APP_PAGE / APP_ROUTER))
- boolean (i am not sure what that precisely means)

I struggle to know if my understanding of the 3d log is correct and what does the boolean means (the fetch cache is invalidated when true or when false)?
I checked online but I did not find any information on it neither on Next js doc (https://nextjs.org/docs/app/building-your-application/data-fetching/incremental-static-regeneration#verifying-correct-production-behavior) or elsewhere.

Thank you for your help.

0 Replies