> Assuming you have a whole bunch of app vars that you will be using > throughout your application. Andrew is correct in what he is saying > about using request scope as you don't need to lock the application > scope EVERY time you want to use it. > > Instead you can use something like:- > > <cflock scope="APPLICATION" type="READONLY" timeout="10" > throwontimeout="Yes"> > <cfset Request.Application = duplicate(Application)> > </cflock>
While you can do this, in my experience this causes a terrible performance degradation in applications with moderate or heavy use. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Special thanks to the CF Community Suite Silver Sponsor - CFDynamics http://www.cfdynamics.com Message: http://www.houseoffusion.com/lists.cfm/link=i:4:188939 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