You are here: Reference > Hand-Editing Configuration Files > Basic Express Server Configuration Using XML Files > The DiskCache Element

The DiskCache Element

In response to requests, Express Server may cache certain files to disk. This includes image thumbnails, frequently requested image extractions, and raw pixels. The DiskCache element specifies the directory in which these temporary files are stored, and policies regarding their removal.

The DiskCache element contains the following editable attributes:

root

This specifies the directory path in which Express Server will store these temporary files. By default it is <Express Server installation directory>/ImageServer/var/cache/iserv_images.

size

This indicates the amount of disk space, in megabytes, which Express Server can use for the disk cache. The default value is 512.

interval

The disk cache is purged of old files or "pruned" periodically. This attribute indicates the number of minutes in between these cache purges. By default the interval is 360 minutes.

In addition to these attributes, the DiskCache element can contain one or more subelements specifying which method to use in caching pixels. For more information see The ImagePixelCache, IndexPixelCache, and WarpPixelCache Elements.