to make this easy, i did a custom tag that you can send days, hours, minutes
and seconds too. Basically, you need to set the time in the past, and when
the time that you send it catches up with the time that the cache was
created, it'll flush. not that this isn't still confusing...
<cfset dtCachetimeout = now()>
<cfset timeout = false>
<cfif isdefined("attributes.days")>
<cfset dtCachetimeout = dateadd("d", -attributes.days, dtCachetimeout)>
<cfset timeout = true>
</cfif>
<cfif isdefined("attributes.hours")>
<cfset dtCachetimeout = dateadd("h", -attributes.hours,
dtCachetimeout)>
<cfset timeout = true>
</cfif>
<cfif isdefined("attributes.minutes")>
<cfset dtCachetimeout = dateadd("n", -attributes.minutes,
dtCachetimeout)>
<cfset timeout = true>
</cfif>
<cfif isdefined("attributes.seconds")>
<cfset dtCachetimeout = dateadd("s", -attributes.seconds,
dtCachetimeout)>
<cfset timeout = true>
</cfif>
<cfif timeout eq true>
<cfset "caller.#attributes.r_dtCachetimeout#" = dtCachetimeout>
<cfelse>
<cfset "caller.#attributes.r_dtCachetimeout#" = 0>
</cfif>
Cheers,
Aaron.
/****************************************
Aaron Shurmer
Senior Developer
Daemon Internet Consultants
ph +61 (0) 2 9380 4162
http://www.daemon.com.au/
engineered.innovation
****************************************/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.