Ok, yes, that is clearing the cache. (There is also an available API call to turn the trusted cache on and off, which would be different.)
Indeed, the name of this method is a misnomer: it doesn't clear the "trusted" cache but instead just clears the template cache. The trusted option simply controls whether CF should look for newly updated files before loading them if it already has them in the cache. All that said, what's the problem you're experiencing? Is it that you change CFCs and reload, but don't see them? That may instead be caused by problems in the underlying Java class files. If you want to confirm it, turn off the "save class files" option in the Admin, and restart CF (to be safe), then request your file. Now, that alone may cause it to pick up the changed files, but you want to go a step further and change the CFC again and reload it, and confirm if now those are indeed picked up. If so, the "save class files" was what was burning you. I've seen this before, but don't know for sure what causes it, though it may be related to a problem I reported back in 2002 at: http://cfmxplus.blogspot.com/2002/11/alert-when-cf-will-fail-to-auto.html The gist was that I observed problems when you move files from one server to another, where the CFML file being copied has an older datetime that the file already compiled class file. There were some interesting nuances, but it may be that just doing a touch to update the file (on the copied to server) so it's more recent than the class file may solve it. (That was then, in like 6.0. Things may be different now.) There are a few ideas to chew on. /charlie http://www.carehart.org/blog/ -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Ross Sent: Tuesday, October 17, 2006 12:50 PM To: discussion@acfug.org Subject: Re: RE: [ACFUG Discuss] cf 7 bug? <cfscript> adminObj = createObject("component","cfide.adminapi.administrator"); adminObj.login(cfide_password); //cfide_password is set in cfide.cfm // Instantiate the runtime object. myObj = createObject("component","cfide.adminapi.runtime"); // clear cache myObj.clearTrustedCache(); </cfscript> On 10/17/06, Charlie Arehart <[EMAIL PROTECTED]> wrote: > Steven, are you just turning off the trusted cache? Or actually > flushing the template cache as well? Show us the Admin API call you're using. > > /charlie > http://www.carehart.org/blog/ > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven > Ross > Sent: Monday, October 16, 2006 4:41 PM > To: ACFUG ColdFusion Discussion > Subject: [ACFUG Discuss] cf 7 bug? > > Anyone using trusted cache and clearing it with the admin API? If so > do your CFC's still remain? We are trying to find out if this is a bug or not. > > Thanks, > > Steven > > -- > Steven Ross > web application & interface developer > http://www.zerium.com > [mobile] 404-488-4364 > [fax] 928-484-4364 > > > ------------------------------------------------------------- > To unsubscribe from this list, manage your profile @ > http://www.acfug.org?fa=login.edituserform > > For more info, see http://www.acfug.org/mailinglists Archive @ > http://www.mail-archive.com/discussion%40acfug.org/ > List hosted by http://www.fusionlink.com > ------------------------------------------------------------- > > > > > > > ------------------------------------------------------------- > To unsubscribe from this list, manage your profile @ > http://www.acfug.org?fa=login.edituserform > > For more info, see http://www.acfug.org/mailinglists Archive @ > http://www.mail-archive.com/discussion%40acfug.org/ > List hosted by http://www.fusionlink.com > ------------------------------------------------------------- > > > > -- Steven Ross web application & interface developer http://www.zerium.com [mobile] 404-488-4364 [fax] 928-484-4364 ------------------------------------------------------------- To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com ------------------------------------------------------------- ------------------------------------------------------------- To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com -------------------------------------------------------------