Skip to content

Commit 6e5888c

Browse files
cursoragents00d
andcommitted
docs: clarify chunk Map eviction is FIFO by write order
Reads do not refresh recency; match the docs wording to evictChunks(). Co-authored-by: Pavel Kuzmin <Virus191288@gmail.com>
1 parent b1f5854 commit 6e5888c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/guide/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1297,7 +1297,7 @@ For most projects the default (unlimited, no expiration) is fine — route names
12971297
`cacheMaxSize` caps:
12981298

12991299
1. **Fetch / server `CacheControl`** (HTTP payload and server loader caches)
1300-
2. **Client chunk Map** (`NuxtI18n.storage.translations`) — oldest unused `(locale, route)` chunks are evicted; the just-written and active page keys are preferred. If the limit cannot hold both (e.g. `cacheMaxSize: 1`), the just-written key wins so the bound is enforced — active `$t` still uses the view layer
1300+
2. **Client chunk Map** (`NuxtI18n.storage.translations`) — oldest (by write order) `(locale, route)` chunks are FIFO-evicted; the just-written and active page keys are preferred. If the limit cannot hold both (e.g. `cacheMaxSize: 1`), the just-written key wins so the bound is enforced — active `$t` still uses the view layer
13011301

13021302
- **`cacheMaxSize`** — caps entries in those caches. Useful for bounding memory.
13031303
- **`cacheTtl`** — expires fetch/server cache entries (not the live view layer). Useful for serverless or runtime-updated translations.

0 commit comments

Comments
 (0)