> -----Original Message----- > From: Jeffry Houser [mailto:[EMAIL PROTECTED] > Sent: Friday, December 31, 2004 8:48 AM > To: CF-Talk > Subject: Re: Well - I feel like an idiot. > > I'm just gonna throw this out there. Would this be better?: > > <cflock name="InitApplication" timeout="30" throwontimeout="yes"> > <cfif NOT IsDefined("Application.Init")> > > ... long init process ... > > <cfset Application.Init = true /> > > </cfif> > </cflock>
Yeah - that's actually what I said in my original post. It would definitely work but I'm guessing (nothing more that that) that checking the variable is lighter than obtaining the lock THEN checking the variable. Since this code is in Application.CFM I want it to be run on the first request then ignored as quickly as possible by all requests. Jim Davis ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Special thanks to the CF Community Suite Silver Sponsor - RUWebby http://www.ruwebby.com Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189055 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54