APGen Documentation Previous Topic: ASPCache.Count Next Topic: ASPCache.MaxSize Parent Topic: ASPCache Object    ASPCache Object
ASPCache.Enabled
See Also:

Enables and disables caching.

Syntax

VBScript:

Cache.Enabled = bEnable

JScript:

Cache.Enabled = bEnable;
Object

Cache An ASPCache object.

Parameters

bEnable True enables caching; False disables caching.

Notes

By default, the Enabled property is True.

Setting Enabled to False prevents items from being written to the cache, and prevents items from being read from the cache.  No errors are raised.  When the cache is disabled, all reads return empty values, Count returns 0, and writes do not change the contents of the cache.

Setting Enabled to False is an easy way to see how your ASP application behaves without caching.