> I think Ian's may be the way to go.  I am using
> cachedwithin as the data
> changes frequently so we cache it for 6 hours.  I don't
> think cachedafter
> will work.

sure it will -- although the alternative is simpler...
but fyi here's the way to accomplish 6 hr caching with cachedafter:

<cfparam name="application.queryname.cachedafter" type="date"
default="#now()#">

<cfif abs(datediff("h",application.queryname.cachedafter,now())) gte
6>
        <cfset application.queryname.cachedafter = now()>
</cfif>

<cfquery name="queryname"
cachedafter="#application.queryname.cachedafter#">
......</cfquery>

<cfoutput>report last generated on
#application.queryname.cachedafter#</cfoutput>


s. isaac dealey     954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://www.sys-con.com/author/?id=4806


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206294
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to