I believe the answer is no, it won't cause a problem. A custom tag has no "instance data", it runs and returns something and that's it. There's no way for multiple threads to walk over each other's data.
Regards, Brian On 7/30/07, Doug Sims <[EMAIL PROTECTED]> wrote: > > I know how important it is to var scope your 'function local' variables > inside persistent cfc's. How do you handle calls to custom tags within > cfc's? does everything inside the custom tag need to be scoped? > > > The app I am working on uses a custom tag to make all database queries. > this tag was developed to prevent business logic from entering their > queries. Basically you perform any logic to dynamically determine variables > you need to pass to the query , create a struct containing the variables, > and pass that to the custom tag, along with the path to the cfm file that > contains the actual cfquery. The query is called using the parameters passed > in the struct. this makes the query available in the template you are > working in. > > > > I am already 'var' scoping the struct before passing it in. I am also var > scoping the query name used in the custom tag. > > inside the tag, some stuff is attributes scoped, some stuff is caller > scoped, but there are many unscoped vars within the tag. > > BTW, here is what the call inside the cfc looks like: > <cf_DBQ query="../returnedQuerynameHere" > path="#getCurrentTemplatePath()#"> > > this CFC is a utility CFC that will live in the application scope. will > this cause a problem when multiple users are calling it? > > Thanks > Doug > > You are subscribed to cfcdev. To unsubscribe, please follow the > instructions at http://www.cfczone.org/listserv.cfm > > CFCDev is supported by: > Katapult Media, Inc. > We are cool code geeks looking for fun projects to rock! > www.katapultmedia.com > > An archive of the CFCDev list is available at > www.mail-archive.com/[email protected] You are subscribed to cfcdev. To unsubscribe, please follow the instructions at http://www.cfczone.org/listserv.cfm CFCDev is supported by: Katapult Media, Inc. We are cool code geeks looking for fun projects to rock! www.katapultmedia.com An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
