Try

<cfif IsDefined( "flushcache" )>
        <cfset cachetime = 0>
<cfelse>
        <cfset cachetime = CreateTimespan( 1,0,0,0 )>
</cfif>

<cfquery name="qry" cachedwithin="#cachetime#">

You have to set the cachetime to zero in order to refresh the query.

-----Original Message-----
From: Duane Boudreau [mailto:[EMAIL PROTECTED]]
Sent: 14 March 2001 17:00
To: CF-Talk
Subject: Flushing Query Cache


I am looking for a way to flush query cache.

I tried:

<cfif IsDefined("flushcache")>
<cfquery name="qry" cachedwithin=CreateTimeSpan(0,0,0,1)>
</cfif>

<cfquery name="qry" cachedwithin=CreateTimeSpan(1,0,0,0)>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to