That would work, but I want to keep everything in the CFC itself and not rely on any 
scopes or outside files.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Nando
Sent: Thursday, October 16, 2003 9:59 AM
To: [EMAIL PROTECTED]
Subject: RE: [CFCDev] Initialize only once


Why not?

lock
cfset application.myCachedData =
CreateObject('component','ThisHereObj').init()
/lock

If this should run only once, you could check to see if
application.myCachedData is defined and only initialize if it isn't. How
would that work?


----------------------------------------------------------
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).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to