http://www.allaire.com/handlers/index.cfm?ID=17318&Method=full

The article by Jim Schley from Allaire explains best practices for using
CFLOCK. 
In this article he addresses your problem and there is a solution that fits
your problem below.

>Would it be like this:
> 1)
><CFLOCK name="readUserInfo" type="READONLY">
><CFIF IsStruct(application.userInfo)>
>about 50 to 60 lines of code
></CFIF>
></CFLOCK>

>or like this:
>2)
> <CFLOCK name="readUserInfo" type="READONLY">
><CFIF IsStruct(application.userInfo)>
></CFLOCK>
>about 50 to 60 lines of code
></CFIF>

In the interest of keeping messages short I recommend you read the article
to understand his solution.

Jaime

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to