Share via


cache Element for asp [IIS Settings Schema]

Note

For more information about the cache element, see the following topic on the Microsoft IIS.net Web site: ASP Cache <cache>.

Configures Active Server Pages (ASP) cache settings.

Syntax

Attributes and Elements

The following sections describe attributes, child elements, and parent elements for this section.

Attributes

Attribute

Description

diskTemplateCacheDirectory

Optional string attribute.

Specifies the name of the directory where ASP stores compiled ASP templates when the in-memory cache overflows.

The default value is "%systemdrive%\inetpub\temp\ASP Compiled Templates".

enableTypelibCache

Optional Boolean attribute.

Specifies whether type libraries are cached.

The default value is true .

maxDiskTemplateCacheFiles

Optional integer attribute.

Specifies the maximum number of compiled ASP templates that can be stored. This value is an integer range from 0 to 2147483647.

The default value is 2000.

scriptEngineCacheMax

Optional integer attribute.

Specifies the maximum number of scripting engines that ASP pages will keep cached in memory. This value is an integer range from 0 to 2147483647.

The default value is 250.

scriptFileCacheSize

Optional integer attribute.

Specifies the number of precompiled script files to cache. If set to 0, no script files are cached. If set to 4294967295, all script files requested are cached. This property is used to tune performance, depending on the amount of available memory and the amount of script file traffic.

The default value is 500.

Child Elements

None.

Parent Elements

Element

Description

configuration

Specifies the root element in every configuration file that is used by IIS 7.

system.webServer

Specifies the top-level section group (in ApplicationHost.config) in which this element is defined.

asp

Configures settings for ASP applications.

Remarks

For more information about the cache element, see the following topic on the Microsoft IIS.net Web site: ASP Cache <cache>.

Element Information

Configuration locations

Machine.config

ApplicationHost.config

Root application Web.config

Application Web.config

Directory Web.config

Requirements

Microsoft Internet Information Services (IIS) version 7.0

See Also

Reference

comPlus Element for asp [IIS Settings Schema]

limits Element for asp [IIS Settings Schema]

session Element for asp [IIS Settings Schema]