- Use `unstable_cache()` if you don’t want to rerun time consuming function at every request on a lambda route (dynamically rendered route at request time) - Cache Keys/`keyParts` are used to identify and differentiate cached function results. - `unstable_cache` can still be invalidated just like how one invalidate cache in fetch calls. - They are `unstable` for a reason and workarounds is still needed to achieve ideal behavior (see the gotchas)
updated 267 days ago
Average score
4,440
Total views
NextJS Things