Manipulate the Admin Debug Settings

Here's a handy UDF which you can use to turn on and off the Admin debug and robust exception settings.

<cffunction name="enableDisableDebugging" output="false" returntype="void" hint="I enable/disable debugging settings">
    <cfargument name="status" type="string" required="true" />
    <cfset var objDebugServiceFactory=createobject("java","coldfusion.server.ServiceFactory").getDebuggingService()>

    <cfif arguments.status EQ "enable">
        <cfif not objDebugServiceFactory.isEnabled()>
            <cfset objDebugServiceFactory.setEnabled(true)>
            <cfset objDebugServiceFactory.setRobustEnabled(true)>
        </cfif>
    <cfelseif arguments.status EQ "disable">
        <cfif objDebugServiceFactory.isEnabled()>
            <cfset objDebugServiceFactory.setEnabled(false)>
            <cfset objDebugServiceFactory.setRobustEnabled(false)>
        </cfif>
    </cfif>
</cffunction>

Then you need to turn on/off the setting with the following in your code...

<cfoutput>#enableDisableDebugging('enable')#</cfoutput>

Programmatically Restarting ColdFusion MX

From Steve Erat's blog...

"Here's a UDF I came up with to restart ColdFusion MX from your code. Say you needed a way to restart, but you're not on the server or can't get a remote desktop on the server, or perhaps you're monitoring getMetricData and you have a criterion for which you might wish to restart CFMX."

Page Compression

As this blog will be moving to Windows 2003/IIS 6 soon, this blog about compressing HTML it worth remembering.

I also found this article.

Slower performance with IIS 6.0 than IIS 5.0

BlogCFC was created by Raymond Camden. This blog is running version 5.9.001. Contact Blog Owner