icinga-powershell-framework/doc/frameworkusage/05-Enable-Framework-Code-Caching.md

22 lines
790 B
Markdown
Raw Normal View History

2021-08-06 09:44:31 -04:00
# Framework Code Caching
2021-08-06 09:44:31 -04:00
By default, Icinga for Windows will compile all module files into a single cache file for quicker and easier loading. This ensures, that during startup all functions are available and can be used in combination with JEA profiles.
2021-08-06 09:44:31 -04:00
The location of the cache file is at
```
2021-08-06 09:44:31 -04:00
.\cache\framework_cache.psm1
```
2021-08-06 09:44:31 -04:00
## Pre-Cautions
2021-08-06 09:44:31 -04:00
In case you are running custom modifications to the Framework or apply manual patches, you will **always** have to re-write the Icinga for Windows cache file! During upgrades by using the Icinga for Windows Cmdlets, the cache file is updated automatically.
2021-08-06 09:44:31 -04:00
## Updating Cache File
2021-08-06 09:44:31 -04:00
To re-write the cache file and update it to the latest version manually, you can use the following command:
```powershell
2021-08-06 09:44:31 -04:00
Write-IcingaFrameworkCodeCache
```