I like your idea:
<cffunction name="onRequest" ...>
<cfargument name="targetPage">
<cfset xcachepath = "/cache">
...
<cfinclude template="#Arguments.targetPage#">
...
</cffunction>
However I'm not sure how to implement this. What is the targetpage? Since this
is the root application.cfc there are many different index pages that this
application.cfc will use.
Here's a another example of my stripped down cfc:
<cfcomponent>
<cffunction name="onRequestStart" returnType="boolean" output="false">
<CFAPPLICATION NAME="mywebsite" SESSIONMANAGEMENT="Yes"
sessiontimeout="#CreateTimeSpan(0,0,20,0)#" setclientcookies="yes">
<CFSET xServerPath =
"c:\inetpub\wwwroot\clients\mywebsite\html">
<cfset application.googlekey
="ABQIAAAAGLygu72xTxPUIqNs3HgaixRGoefddpfKqX6LEQeDUC4B8xTs1enEDprVOV5TidrQOUmVZpW7QA">
<cfsetting showdebugoutput="no">
<CFSET DATASOURCE = "mywebsitecom">
<CFSET COMPANYNAME = "mywebsite">
<cfset xSSLUrl = "https://www.mywebsite.com">
<cfset xSwitch="1">
<cfif xSwitch is 1>
<cfset xPathOrdering ="#xSSLUrl#/templates/">
<cfset xURLPath ="#xSSLUrl#/">
<CFSET xURLHome = "#application.XNEWROOT#">
<cfelse>
<cfset xPathOrdering = "">
<cfset xURLPath = "http://localhost/mywebsite/">
</cfif>
<cfset application.xtimedifference="2">
<cfset simple = 1>
<cfset xbird="robin">
<cfset application.xbird="robin">
<cfinclude template="templates/codecopyright.cfm">
<CFSET xLiveInventory = "StockWeb">
<cfset xCfhttpPath="#application.XNEWROOT#">
<cfset xRelativePath =
"c:\inetpub\wwwroot\clients\Xservercom\html">
<CFSET xCache =
"c:\inetpub\wwwroot\clients\mywebsitecom\html\_cache">
<CFSET xRootCache = "/_cache">
<cfif xSwitch is 0>
<cfset aSiteURL="http://localhost/mywebsite">
<cfelse>
<cfset aSiteURL="#application.XNEWROOT#">
</cfif>
]
<CFSET aShowAuctions = 1>
<!--- Used to determine a light grey image border color --->
<CFSET aBorderColor = "Silver">
<!--- Added 8/19/07 For Amazon Rest Statements --->
<cfset amz_Service ="AWSECommerceService">
<cfset amz_AWSAccessKeyId = "1FDX21XKHQ9CAT4X02">
<cfset amz_Version = "2007-07-16">
<cfset amz_associateid = "xcom-20">
<cfreturn true>
</cffunction>
</cfcomponent>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309406
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4