diff --git a/icinga-powershell-framework.psm1 b/icinga-powershell-framework.psm1 index eda4152..92f94dc 100644 --- a/icinga-powershell-framework.psm1 +++ b/icinga-powershell-framework.psm1 @@ -46,8 +46,6 @@ function Use-Icinga() Use-IcingaPlugins; } - Write-IcingaFrameworkCodeCache; - # This function will allow us to load this entire module including possible # actions, making it available within our shell environment # First load our custom modules @@ -135,7 +133,7 @@ function Import-IcingaLib() $CacheFile = Get-IcingaFrameworkCodeCacheFile; - if ($Custom -eq $FALSE -And $CompileCache -eq $FALSE -And (Test-Path $CacheFile)) { + if ($CompileCache -eq $FALSE) { Import-Module 'icinga-powershell-framework' -Global -Force; return; }