Sam Farmer

Growing up I never imagined I would play bass guitar for the Dave Matthews Band. And indeed it never happened.

But I have become passionate about making software.

Quick fix for 9.0.1 dump not showing method changes

August 1, 2010

ColdFusion 9.0.1 introduces a small bug into cfdump where changes to function arguments will not show up in cfdump if the dump has already been run once.  I don't know the background but my guess is that in order to speed things up CF is using the cache to store the dump of function code.

The fix to this is to clear from cache anything that starts with _cf_dump with this code:

<cfscript> for ( key in cacheGetAllIds() ) {  if ( left( key, 8) == "_CF_DUMP") {   cacheRemove( key );  } }  </cfscript>

If you are doing a lot of looking at cfdump after changing methods (something I almost never do) then you can place that code in Application.cfc onRequestEnd.

No Comments

Some comments have been lost over the years due to moving hosts.


More blog entries that I have written.

Code coloring by PRISM.