next.js
feat(next/image): add lru disk cache and `images.maximumDiskCacheSize`
#89963
Merged

feat(next/image): add lru disk cache and `images.maximumDiskCacheSize` #89963

styfle merged 30 commits into canary from styfle/image-cache-lru
styfle
styfle feat(next/image): add lru disk cache
5eb084b0
nextjs-bot nextjs-bot added created-by: Next.js team
nextjs-bot nextjs-bot added tests
nextjs-bot nextjs-bot added type: next
styfle refactor to separate file
e66f39da
vercel
vercel commented on 2026-02-14
styfle Merge branch 'canary' into styfle/image-cache-lru
303f46f2
nextjs-bot
nextjs-bot
styfle make the config nullable and exit early
f96e2a5a
styfle add test for cacheMaxDiskSize config
28180290
styfle add missing test to lru-cache.test.ts
d9a45f6e
styfle return boolean from lru.set()
5dca140e
styfle error message
51473150
styfle check for success from lru.set() before writeToCacheDir()
0c59f621
styfle refactor delete() out of lru
f05f70a0
styfle Merge branch 'canary' into styfle/image-cache-lru
3fbe114e
styfle ensure cache directory exists
7bd0716d
styfle update comment
cee787d5
ztanner
ztanner commented on 2026-02-18
styfle apply ztanner suggestions
d04b1c5d
styfle Mark `isrFlushToDisk` as deprecated
076a326c
styfle Revert "Mark `isrFlushToDisk` as deprecated"
ceabcd56
styfle move config to `images.maximumDiskCacheSize`
e587be21
styfle consolidate into a single test
c16e5629
styfle null => undefined
636cc215
styfle fix with optional chaining
204ac8eb
styfle styfle marked this pull request as ready for review 38 days ago
styfle styfle changed the title feat(next/image): add lru disk cache feat(next/image): add lru disk cache and `images.maximumDiskCacheSize` 38 days ago
styfle styfle requested a review from ijjk ijjk 38 days ago
styfle styfle requested a review from ztanner ztanner 38 days ago
styfle more optional chaining
a9ce9197
styfle Merge branch 'canary' into styfle/image-cache-lru
e36e2f35
styfle improve error message
533f9518
styfle chore: update docs
c7213a47
styfle also disable disk cache during reads
bf999be0
nextjs-bot nextjs-bot added Documentation
styfle link to `cacheHandler` docs
572ad3cb
styfle
styfle commented on 2026-02-20
ztanner
ztanner commented on 2026-02-20
styfle Add `isDiskCacheEnabled` class property to simplify logic
6e5756df
styfle move logic inside if statement
edec8b81
styfle styfle requested a review from ztanner ztanner 37 days ago
ztanner
ztanner approved these changes on 2026-02-20
styfle Merge branch 'canary' into styfle/image-cache-lru
2ed3ccc7
styfle fix merge conflicts
c10a3065
styfle styfle enabled auto-merge (squash) 37 days ago
styfle styfle merged 39eb8e0a into canary 37 days ago
styfle styfle deleted the styfle/image-cache-lru branch 37 days ago
claude claude added claude-code-assisted
github-actions github-actions added locked
github-actions github-actions locked as resolved and limited conversation to collaborators 22 days ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone