ColdFusion 8 Per-Application Settings Get Partially Cached (And There's Nothing You Can Do About It)

<cfcomponent
	output="false"
	hint="I define application settings and event handlers.">
 
	<!--- Define application settings. --->
	<cfset THIS.Name = "TagPathDemo" />
	<cfset THIS.ApplicationTimeout = CreateTimeSpan( 0, 0, 0, 15 ) />
 
	<!---
		Define custom mappings. These need to be set on EVERY
		page request. Put in psuedo constructor so all events
		can leverage them.
	--->
	<cfset THIS.Mappings[ "/com" ] = (
		GetDirectoryFromPath( GetCurrentTemplatePath() ) &
		"components\"
		) />
 
 
	<cffunction
		name="OnApplicationStart"
		access="public"
		returntype="boolean"
		output="false"
		hint="I fire when an application needs to be initialized.">
 
		<!---
			Define ColdFusion custom tag paths. Since these
			values are cached, they only need to be set once
			when the application is intialized.
		--->
		<cfset THIS.CustomTagPaths = (
			GetDirectoryFromPath( GetCurrentTemplatePath() ) &
			"tags\"
			) />
 
		<!--- Return true so page will run. --->
		<cfreturn true />
	</cffunction>
 
</cfcomponent>

For Cut-and-Paste