You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Avoid filling up the server disk and grinding it to a halt
Non-Goals
No response
Background
There's the cacheMaxMemorySize option, but it limits only the in-memory cache, not the cache files written to disk.
Proposal
I have a typical standalone Docker setup with Next 15 and the issue I'm having is that my servers eventually start running out of disk space due to the ISR cache, i.e. the files in .next/server/app inside the container.
To fix this, I have to manually delete files from there and free up space as needed, which is tough to do efficiently. It would be ideal if Next provided a limit for the files written to disk (similar to cacheMaxMemorySize), which evicts entries in LRU fashion.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Non-Goals
No response
Background
There's the
cacheMaxMemorySizeoption, but it limits only the in-memory cache, not the cache files written to disk.Proposal
I have a typical standalone Docker setup with Next 15 and the issue I'm having is that my servers eventually start running out of disk space due to the ISR cache, i.e. the files in
.next/server/appinside the container.To fix this, I have to manually delete files from there and free up space as needed, which is tough to do efficiently. It would be ideal if Next provided a limit for the files written to disk (similar to
cacheMaxMemorySize), which evicts entries in LRU fashion.Beta Was this translation helpful? Give feedback.
All reactions