From 8d20204beb92d7551aa75dcdfa2be86db4f84f2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E9=B8=BF=E9=A3=9E?= Date: Thu, 29 Aug 2024 12:36:46 +0800 Subject: [PATCH] doc: fix module compile cache description PR-URL: https://github.com/nodejs/node/pull/54625 Reviewed-By: Joyee Cheung Reviewed-By: Antoine du Hamel --- doc/api/module.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/module.md b/doc/api/module.md index ae3562c502f873..9b98231f02e52c 100644 --- a/doc/api/module.md +++ b/doc/api/module.md @@ -182,7 +182,7 @@ directory will be recreated the next time the same directory is used for for com storage. To avoid filling up the disk with stale cache, it is recommended to use a directory under the [`os.tmpdir()`][]. If the compile cache is enabled by a call to [`module.enableCompileCache()`][] without specifying the directory, Node.js will use -the [`NODE_DISABLE_COMPILE_CACHE=1`][] environment variable if it's set, or defaults +the [`NODE_COMPILE_CACHE=dir`][] environment variable if it's set, or defaults to `path.join(os.tmpdir(), 'node-compile-cache')` otherwise. To locate the compile cache directory used by a running Node.js instance, use [`module.getCompileCacheDir()`][].