module.flushCompileCache()


稳定性: 1.1 - 积极开发

¥Stability: 1.1 - Active Development

将当前 Node.js 实例中已加载的模块中累积的 模块编译缓存 刷新到磁盘。无论成功与否,所有刷新文件系统操作结束后都会返回此结果。如果有任何错误,这将默默失败,因为编译缓存未命中不应干扰应用的实际操作。

¥Flush the module compile cache accumulated from modules already loaded in the current Node.js instance to disk. This returns after all the flushing file system operations come to an end, no matter they succeed or not. If there are any errors, this will fail silently, since compile cache misses should not interfere with the actual operation of the application.