Ever wonder why an object data is never updated whenever you update the actual data via a cfquery tag and when you do a getData() from the Farcry frame work, the data doesn’t contain the changes you made previously via cfquery?
Well this is because the data you get from the getData() function are loaded from the Object Broker, which caches the data for fast retrival, therefore when you do an update manually via cfquery tag, this change was not registered in Object Broker. Here’s a handy little snippet of code that will do the trick!
<cfset application.fc.lib.objectbroker.RemoveFromObjectBroker(lObjectIDs=objectid,typename='dmHTML') />
The sample code above allows you to update the cache of a dmHTML object in the Object Broker cache.