if goo is stored is the application scope, and you place your query in
the variables scope of goo, it's reliably cached for as long as goo is
cached - you have control over it. If you cache the query using the
cachedwithin attribute, it'll be cached for as long as the
cachedwithin attribute allows OR until the server's query cache limit
is reached, which on a shared server, might not be very long at all,
depending on a variety of factors.

On Fri, 27 Aug 2004 00:01:33 -0400, Douglas Knudsen <[EMAIL PROTECTED]> wrote:
> Ok, I got a cfc named goo.  Inside goo I perform a query.  Now this cfc goo
> has an instance stored in the application scope.  I want to employ query
> caching on that query via the cfquery tags cachedwithin attribute.
> Something tells me this no so good for thread safteyness, eh?  Thoughts?
> Yes, I var scoped the query name.  Is it the fact that CF uses the name,
> sql, and dsn to ID the query in memory make my question moot?
>
> Doug
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to