Powershell ISE 是否缓存文件?

Does Powershell ISE cache files?

我一直在动态修改一个 powershell 模块,之后立即 运行 一个使用它的脚本并且在我重新启动 powershell ISE 之前一直看不到我的更新。我想 powershell ISE 至少缓存模块。如何清除缓存或控制缓存?

您可以尝试Remove-ModuleImport-Module,或Import-Module -Force,或Import-Module -Refresh
您还可以在大约 15 秒内 google 一堆关于 SO 的类似主题。