> I have a page that calculates the shipping method after a person updates
> their cart. It looks in their shopping cart database table for the ship
> method, recalculates then redirects to the cart page.
>
> The problem is that sometimes the database gets changed, but the
> query runs
> off of "old" data. IE it's not making a new query.
>
> How can I force a query to use data from a table and not from cache?
The obvious answer is to not cache it in CF
If you need to use caching in CF, then when it's updated, use
CACHEDWITHIN="#CreateTimeSpan(0,0,0,0)#" and the same SQL - this should
refresh the cache on that one query
Philip Arnold
Director
Certified ColdFusion Developer
ASP Multimedia Limited
T: +44 (0)20 8680 1133
"Websites for the real world"
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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