From cbc85bd732d2eed0120cd8626473102833547657 Mon Sep 17 00:00:00 2001 From: ShenHongFei Date: Thu, 29 Aug 2024 09:49:46 +0800 Subject: [PATCH] doc: fix module compile cache description --- 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()`][].