Files
node/doc/api
Shelley Vohr 97a437e7ea module: add a read-only mode to the compile cache
A compile cache generated ahead of time and shipped inside an
application package should only ever be read: the package may be
immutable or covered by an integrity check, and a cache directory that
appears at run time would be a surprise. Add readOnly to
module.enableCompileCache() and NODE_COMPILE_CACHE_READONLY=1: existing
entries are loaded as before, nothing is serialized or persisted,
flushCompileCache() is a no-op, and the cache directory is used as found
rather than created, so enabling against a missing directory fails
instead of making one.

Signed-off-by: Shelley Vohr <shelley.vohr@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/65302
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk>
2026-08-26 00:56:20 +02:00
..
2026-07-29 10:31:33 -03:00
2026-08-26 00:56:17 +02:00
2026-08-26 00:56:04 +02:00
2026-08-05 11:17:28 +02:00
2026-06-20 17:50:48 +02:00
2025-12-16 20:31:28 +00:00
2026-08-26 00:56:17 +02:00
2026-08-26 00:56:15 +02:00
2026-08-05 11:15:08 +02:00
2026-08-26 00:55:36 +02:00
2026-08-26 00:55:58 +02:00
2026-08-26 00:55:33 +02:00