Just note though - that lock isn't really necessary if all you are
doing is setting a bunch of simple values in the app scope. And by
simple I mean things that dont' need to be single threaded. A CFC
stored in the app scope is most likely fine as well.

On Jan 3, 2008 1:59 PM, Will Tomlinson <[EMAIL PROTECTED]> wrote:
> >What is another way besides creating a temp file to explicitly reset
> >those variables?
> >Is there a way to make the Application expire and restart (sort of
> >speak)?
>
> Here's what I use:
>
> <cffunction name="onRequestStart" returntype="void" output="false">
>   <cfif structKeyExists(url,"reinitApp")>
>     <cflock scope="application" type="exclusive" timeout="5" 
> throwontimeout="true">
>       <cfset onApplicationStart()>
>     </cflock>
>   </cfif>
> </cffunction>
>
> Then add ?reinitApp=1 in any url to restart the app
>
> Will
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295790
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to