I'd like to have a CFC put itself in cache, and then replace itself with
that cached object whenever it is created.
Is that possible? Is it stupid?
Will this code do the trick, or is 'this' not really a reference to the
current object, but just a scope within the object?
<cfcomponent displayname="foo">
<cfparam name="server.foo" default="#this#"> <!--- put this object
in server cache --->
<cfset this = server.foo> <!--- replace this object with the cached
one --->
<!--- methods to follow --->
...
</cfcomponent>
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev'
in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).