I wrote this post back in 2004 that covered how to make CFCs thread safe,
it's still pretty relevant:
http://www.compoundtheory.com/?action=displayPost&ID=21

The only thing that could be added to it was 'Use Varscoper to check your
Var scoping!'

Mark

On Thu, Jun 18, 2009 at 8:27 AM, Jason Fisher <[email protected]> wrote:

> To expand on David's point about the global nature of 'variables' scope in
> a CFC, note that Model-Glue caches your controller objects in application
> memory, so any un-var'd CFC variable is 'sticky' within all instances of
> that CFC ... and that CFC is shared across the application, so that's why
> you have to use var to limit the variable usage to each method call.
>
>
> >
>


-- 
E: [email protected]
W: www.compoundtheory.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

For more about Model-Glue, check http://www.model-glue.com .
-~----------~----~----~----~------~----~------~--~---

Reply via email to