>
> 1. Can variables in the application scope be made available to custom
tags?
> (I know I can set application variables in the request scope which will
make
> them available to custom tags.)

Yes  Application Scoped vars are available to Custom tags. The application
scope that is used is the scope of the calling template .

> 2. If I set variables in my application.cfm to be in the request scope,
does
> this mean they are set every "request" to the web site? It seems as if my
> app.cfm is no longer being cached but is instead being processed every
page
> view.  How can I test to see if this is true, or does anyone know FOR SURE
> the behavior of the request scope?


Yes they are set for each request as request scope only lasts for the for
the length of the request , unlike application vars which are stored in
memory.

Try something like

<cfif not IsDefined("Application.IsInitialised")>
    <!---set your app vars --->

    <cfset Application.IsInitialised = 1>
</cfif>




Justin MacCarthy


------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
  • Scoping Matthew Taylor
    • JustinMacCarthy

Reply via email to