Using cachedwithin attibute inside cfquery

Posted by Jason on Stack Overflow See other posts from Stack Overflow or by Jason
Published on 2010-06-14T18:50:20Z Indexed on 2010/06/14 19:12 UTC
Read the original article Hit count: 182

When you use the cachedwithin attribute in a cfquery how does it store the query in memory. Does it store it by only the name you assign to the query? For example, if on my index page I cache a query for an hour and name it getPeople will a query with the same name on a different page (or the same page for that matter) use the cached results or does it use some better logic to decide if it is the same query?

Also, if there is a variable in your query does the cache take into account the value of the variable?

© Stack Overflow or respective owner

Related posts about coldfusion

Related posts about cfml