Next.js Discord

Discord Forum

unstable_cache

Unanswered
Limpkin posted this in #help-forum
Open in Discord
LimpkinOP
am using unstable cache and have started to see cache misses jump up from max 5% of data being written, to 15%-20% of data being written (ie failing 5% -> failing 15%).

the cache other behaviour we are seeing is:

t0: miss
t1: hit
t2:hit
t3: miss

where the timeperiod between t0 - t2 appears to be maximum 5 minutes (our revalidation time is 3600 * 24). this is mainly anecdotal, i haven't found an easy way to see the max hit entry duration (ie the age of a hit entry)

the unstable_cache page https://nextjs.org/docs/app/api-reference/functions/unstable_cache doesn't explicitly mention any size limits for entries in the cache... also our entries are intermittently cached for the same payload... so i am not confident it is a payload size issue... any thoughts? thanks!

note: we only saw these issues after migrating to next 15, react 19.

0 Replies