cfoCollectGarbage
Summary:
This tag will loop over all objects in the cfoObjects ObjectPool and invoke the destructor
method for each. The Object Pool is created automatically by cfoInit and updated by
cfoCreateObject. All instantiated objects during a single HTTP request are added to the
ObjectPool, and they stored in an array named request.cfo.objectPool.
cfoCollectGarbage loops though that array and calls each object's destructor method.
This tag is completely optional. If your objects do not contain destructors or do
not require special clean-up processing, then there is no need to use this tag
as it will simply add overhead. On the other hand, if you are going to use the tag,
you might consider adding it to the "OnRequestEnd.cfm" file so that it is automatically
invoked after each page request.
Attributes:
None
Examples:
<cf_cfoCollectGarbage>
|