ImageCacheCount Property


Applies to

THtmlViewer, TFrameViewer, and TFrameBrowser components

Declaration

property ImageCacheCount: Integer;

To save time in reloading HTML files with images, image caching may be used to save images already loaded. The ImageCacheCount property determines the extent to which this is done.

With an ImageCacheCount of 5, for instance, images will be saved through 5 document reloads. If the image is not used during that period, it will be dropped from the cache. However, anytime an image is used, the count is reset to zero and it will remain for 5 more reloads.

The default value for ImageCacheCount is 5. A value of 0 indicates no caching. The cache may be flushed by setting the count to 0 temporarily and then resetting it to the desired value.

Since image storage can use a lot of memory, care should be taken not to overdo the amount of caching.