1. You should lock the entire group with a CFLOCK and a scope of application. 
2. An IsDefined() with a set is actually slightly faster than a CFAPPLICATION. There's 
even a UDF that does just this and its still faster even with the small UDF overhead. 
Note that this is limited to the isdefined() then default. When you start doing the 
other things that a CFPARAM is useful for then the balance changes.

At 11:21 AM 3/26/02, you wrote:
>Here is my application.cfm file:
>
><cfapplication name="appname" applicationtimeout=#CreateTimeSpan(2, 0, 0,
>0)#>
>
><cfparam name="application.appnameroot" default="/appname">
><cfparam name="application.includesDir" default="/appname/includes">
><cfparam name="application.imagesDir" default="/appname/images">
><cfparam name="application.menusDir" default="/appname/menus">
><cfparam name="application.templatesDir" default="/appname/templates">
><cfparam name="application.smapDir" default="/appname/smap">
>
>Should I be locking these cfparam tags? Should I wrap them all in one lock
>or should I lock each one individually?
>
>What is the difference between using cfparam tags as I have above and using
>cfif with isDefined and cfset to accomplish the same thing? Is one method a
>better practice than the other?
>
>Thanks!
>
>George
>[EMAIL PROTECTED]
>
______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to