If I understand your question, I think the answer is, "yes". Here's how I handle this:
states_get.cfm (query template) ----------------------------- <!--- DEFINE DEFAULT VALUE FOR TIME SPAN ---> <cfparam name="request.cache_qStates" default="#createTimeSpan(1,0,0,0)#"> <cfquery name="qStates" datasource="dsn" cachedwithin="#request.cache_qStates#"> select * from states </cfquery> ----------------------------- If you ever need to "refresh" or "reset" the query, like after a database insert, update, or delete, simply do this: <cfset request.cache_qStates = createTimeSpan(0,0,0,0)> <cfinclude template="states_get.cfm"> HTH, Brad > -----Original Message----- > From: Jim Banks [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 05, 2003 8:19 AM > To: CF-Talk > Subject: CFQUERY - cachedwithin > > > When you have used cachedwithin in CFQUERY, is it possible to > override that before the cachedtime is up? For example, > > <cfif not isdefined("application.recache")> > <cfquery name="query" datasource="dsn" > cachedwithin="#createtimespan(0,1,0,0)#"> > ...BLAH... > </cfquery> > <cfelse> > <cfquery name="query" datasource="dsn"> > ...BLAH... > </cfquery> > <cfset temp = structdelete(application, "recache")> > </cfif> > > Here, it'd be great if I could 'reset' the query so that if I've > defined somewhere else on the site that the query has changed > using the application variable, I can get it to use the new query > results and cache that for next time, instead. > > Thanks! > > > > > > --------------------------------- > Yahoo! Plus - For a better Internet experience > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

