The cached query will persist for the template it was run from, and the only
way to override it (even if CF gets newer info from the database in an
identical query elsewhere) is to use the cfobjectcache tag (5.0 only) like
this:
<cfobjectcache action="clear">
The syntax is as follows:
<cfquery name="get_content" datasource="#request.www_ds#" maxrows=1
dbtype="ODBC" cachedwithin="#CreateTimeSpan(1,0,0,0)#">
... where the timespan arguments are days,hours,minutes,seconds.

----- Original Message -----
> Just a quick question about query caching (using CACHEDWITHIN attrib) --
>
> Is the cached query tied to a particular application?

Sincerely,

Daniel Larson
[  [EMAIL PROTECTED]  |  www.larsoninternet.org  ]



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to