On Wed, Jun 1, 2011 at 12:18 PM, Matt C <[email protected]> wrote:

> It sounds like I
> can place a cfquery inside a cffunction in application.cfc, and then I
> can access that query on any page as needed via the application scope,
> but the database only gets hit specifically when the function is
> called (not every time any page is loaded).  Is this correct?
>

Depends on where you put it, but yes, if it's inside a function in
Application.cfc that function would only get run when you call it, or when
called as appropriate by the engine in the case of functions like
onApplicationStart, etc.

-- 
Matthew Woodward
[email protected]
http://blog.mattwoodward.com
identi.ca / Twitter: @mpwoodward

Please do not send me proprietary file formats such as Word, PowerPoint,
etc. as attachments.
http://www.gnu.org/philosophy/no-word-attachments.html

-- 
official tag/function reference: http://openbd.org/manual/
 mailing list - http://groups.google.com/group/openbd?hl=en

Reply via email to