If it's a specific query you can use
cachedwithin="#creattimespan(0,0,0,0)#"

You might also consider "cachedafter" - sounds like it fits your problem. I
have a blog on this very topic :)

http://mkruger.cfwebtools.com/index.cfm/2005/10/13/safe.caching

-Mark


-----Original Message-----
From: Ben Doom [mailto:[EMAIL PROTECTED]
Sent: Monday, October 24, 2005 10:43 AM
To: CF-Talk
Subject: Flushing Cached Queries


Okay, this is probably something obvious I'm either overlooking or not
thinking of.  For some reason, I can figure out the really complicated
things far easier than the ones that should be simple.  Anyway....

Is there a way to force CF 6.1 to update a cached query programatically.
  That is, is there a way to force the query to re-run even if the
timeout specified in cachedwithin is not up yet.

We've got a client who runs a database update routine at a certain time,
and we want to try and run the query just before (to cache it across the
update) and just after (to pick up the updated data).  Ideas?

--Ben




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222061
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to