Global IIS Caching Registry Entries

Applies To: Windows Server 2003, Windows Server 2003 with SP1

The following registry entries affect caching on your server. In most cases, these settings should not require tuning or adjusting. If you find it necessary to adjust these settings, use caution and monitor performance and scalability after making changes.

Warning

Do not edit the registry unless you have no alternative. The registry editor bypasses standard safeguards, allowing settings that can damage your system, or even require you to reinstall Windows. If you must edit the registry, back it up first and see the Registry Reference.

DisableMemoryCache

Windows registry path: HKLM\SYSTEM\CurrentControlSet\Services\InetInfo\Parameters

Data type: REG_DWORD

Default value: 0 (disabled)

Range: 0 - 1

Disables server static file caching, which negatively impacts performance and scalability. It is not recommended that you disable caching unless you are troubleshooting an issue or debugging application code.

MemCacheSize

Windows registry path: HKLM\SYSTEM\CurrentControlSet\Services\InetInfo\Parameters

Data type: REG_DWORD

Default value: approximately one-half of available physical memory, in megabytes (MB)

Range: 0 - 2500 MB

Controls the size of the static file cache. The default value is dynamically adjusted every 60 seconds.

ObjectCacheTTL

Windows registry path: HKLM\CurrentControlSet\Services\InetInfo\Parameters

Data type: REG_DWORD

Default value: 30 (seconds)

Range: 0 - 4,294,967,295 (unlimited)

Controls the TTL setting, which defines the length of time that objects are held in the cache. If an object in the memory cache has not been referenced for the specified period, that object will be phased out of the cache. If system memory is limited, or the contents of the server are dynamic, you can use a lower TTL to prevent system memory from being used to cache a large number of volatile objects. Setting ObjectCacheTTL to 0xFFFFFFFF disables the object-cache scavenger (the process that routinely reads the items in the cache to determine which items should stay in the cache and which items should be flushed) and allows cached objects to remain in the cache until they are overwritten. Disabling the cache scavenger is useful if your server has ample system memory and your data is relatively static.

For more information about these registry entries, see Global Registry Entries.

For more information about editing the registry, see the Registry Reference.