CimSystem.EnableClassCaching (method)

Enables class caching
Syntax: object.EnableClassCaching
Description: CimSystem.EnableClassCaching enables caching of class configuration. When configuring a large number of CimObjectInstances turning on class caching can improve performance. When caching is not turned on, as each object is loaded the class file is read from disk. When caching is turned on the class is only read once from disk and will stay loaded until CimServer exits. Hence, if the class file changes after CimServer has loaded the class it will not reload the class until it restarts. Once enabled this feature is enabled for the duration of the run of the CimServer and cannot be turned off.

Example

Dim systems as CimSystem
Set systems = CreateObject("CimSystem")
systems.EnableClassCaching