iFIX provides a picture caching capability that optimizes the performance of the WorkSpace when opening pictures by eliminating the need for picture files to be read from the disk drive. Instead, pictures that have been previously opened and closed are held in memory and, when reopened, are read from memory.
With picture caching, you can:
- Preload pictures that will always remain in the cache.
- Set the number of pictures to be reopened from the cache.
There are two types of pictures you can cache: run-time pictures and preload pictures. Run-time pictures are loaded into the cache when they are closed. When the number of cached pictures exceeds the cache size setting, the oldest picture is dropped from the cache and is replaced with the most recently closed picture. Preload pictures are loaded when the WorkSpace is started and have a property of AlwaysLoaded. They are never dropped from the cache while you are in run mode.
In a new installation of iFIX, picture caching is enabled by default with a picture count of five. In upgrades to iFIX 2.5 and later, picture caching is not enabled by default.