RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAbstractWebModuleFactory.CacheMode Property

Indicates whether the factory can cache Web modules for reuse.

Pascal
property CacheMode: TWebModuleCacheMode;
C++
__property TWebModuleCacheMode CacheMode;

The Web module factory creates an instance of its Web module to handle a specific HTTP request message. After the WebSnap application has finished with that request, it can free the Web module instance, or cache it so that the next time it needs to create an instance of its Web module, it can simply reuse the cached instance. 

When CacheMode is caCache, the WebSnap application caches Web module instances for reuse. This can improve performance. 

When CacheMode is caDestroy, the WebSnap application frees Web module instances when they are no longer needed for the current request message. This is the safest approach if changes to the Web module or any of the components it contains that are made while processing a request message can interfere with the correct handling of subsequent request messages. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!