Access to data in shared scopes must be locked to prevent data and memory corruption. But if you need to access the same shared scope variable over and over, don’t lock it every time. Instead, lock it once and make a local copy (in either the VARIABLES or REQUEST scopes) and then read the local copy as needed. (Applies to: ColdFusion 4 (or later))

Leave a Reply