Subchapter 7.57
references/support-topics/use-cache-date-stamp-isr-write-amplifier.mdMarkdown1 KBView on GitHub
'use cache' keys on argument identity and prerender output. A new Date(), Date.now(), or Math.random() baked into the cached output forces a fresh ISR write on every regeneration even when the data is unchanged.
Check the scanner finding’s subtype: module-scope (module-level date) or in-cache-fn (inside the cached body). Cross-reference isrWritesByRoute — a stable write rate against low reads is the symptom.
Skip if the date is inside useEffect/useCallback/useMemo. Skip if 'use cache' is only a comment. Skip if the date is the intended cache key.
Name the file, the specific primitive call, and the replacement: build-time constant or client-side useEffect.