APGen Documentation Previous Topic: ASPCache.RemoveAll() Next Topic: ASPCache.WriteFile() Parent Topic: ASPCache Object    ASPCache Object
ASPCache.Flush()
See Also:

Initiates a background flush operation.  This removes items that have not been used in a while or that have expired.

Syntax

VBScript:

Cache.Flush

JScript:

Cache.Flush( );

Object

Cache An ASPCache object.

Notes

Flush() enables developers to specify when a flush occurs.  Normally, the flush thread runs every FlushInterval milliseconds (if flushing is enabled ), or when the number of items in the cache exceeds the MaxSize.

The background thread takes care of flushing, item expiration, and shrinking.  For flushing and expiration, the background thread runs at below normal priority, so responses to ASP requests will never be slowed down.  When the number of items in the cache exceeds the MaxSize, the background thread is bumped up to normal priority, to ensure that resources are removed promptly, even if the web server is under heavy load.

For more information, see the topics Flushing, Expiration, and Shrinking.