hi,
I struggled with this problem before and soved it for me...
the problem was here (fourq.cfc about line 200). Once the cache is built, rhe database isn't used anymore:
<cfif isdefined("instance.bgetdata") AND instance.bgetdata EQ arguments.objectid AND arguments.bUseInstanceCache>
<!--- get local instance cache --->
<cfset stObj = instance.stobj>
<cftrace type="information" category="coapi" var="stobj.typename" text="getData() used instance cache.">
<cfelse>
<!--- build a local instance cache --->
<cfinclude template="_fourq/getData.cfm">
<cfset instance.stobj = stobj>
<cfset instance.bgetData = arguments.objectid>
<cftrace type="information" category="coapi" var="stobj.typename" text="getData() used database.">
</cfif>
The instance cache depends on instance.bgetdata so I cleared this value (set it too "") and after that used getData(), which then gets the updated values:
if IsDefined("instance.bgetData") {
instance.getData = "";
THIS.getData(stObj.objectID);
}
Hope that helps,
Sebastian
View this message in context: Re: fourQ issue--cached object being returned after update
Sent from the FarCry - Dev forum at Nabble.com.
[farcry-dev] Re: fourQ issue--cached object being returned after update
Sebastan Frost (sent by Nabble.com) Sun, 15 Jan 2006 09:53:04 -0800
