I have a content type with a display webskin that checks to see if the user
is a member of a group with a custom right, and if not the webskin displays
the login form.
 
The page is relatively slow to load when the user is not authorized, and
obviously the output cannot be cached.
 
My webskin display code:
 
<cfset
bHasPermission=request.dmsec.oAuthorisation.checkPermission(permissionName=s
tObj.typename & "_display",reference="policygroup")>
<cfif bHasPermission neq 1>
 <cfset bHasPermission=isApprovedBrowser()>
</cfif>
 
<cfif bHasPermission is 1>
 <cfset HTML=getView(stObject=stObj,template="displayAuthorized")>
 <cfoutput>#HTML#</cfoutput>
<cfelse>
 <cfimport taglib="/farcry/core/tags/webskin" prefix="skin"> 
 <skin:buildlink objectid="#stObj.objectid#" r_url="thisURL">
 <cfset url.returnURL=thisURL>
 
     <cfset
loginpath="#application.url.farcry#/login.cfm?returnUrl=#URLEncodedFormat(th
isURL)#">
     <cfset request.dmsec.oAuthentication.logout()>
  <cflocation url="#loginpath#" addtoken="No">
</cfif>
 
My customadmin/login/login.cfm is based on the Navajo login.cfm.
 
I am amazed to see all the templates that are being executed to make this
happen. Is there anything I can cut out of this list to speed processing
when webtop permissions is not relevant (public users)?
 
Derek
 
 
Execution Time 
Total Time       Avg Time        Count   Template       
4799 ms  4799 ms         1
W:\users\westfall\farcry\core\admin\Application.cfm     
4721 ms  4721 ms         1       CFC[
W:\users\westfall\farcry\core\packages\farcry\webtop.cfc | init() ] from
W:\users\westfall\farcry\core\packages\farcry\webtop.cfc        
3142 ms  3142 ms         1       CFC[
W:\users\westfall\farcry\core\packages\farcry\WebtopRoot.cfc | getXmlDoc() ]
from W:\users\westfall\farcry\core\packages\farcry\WebtopRoot.cfc       
3111 ms  444 ms  7       CFC[
W:\users\westfall\farcry\core\packages\farcry\WebtopSection.cfc | getXml() ]
from W:\users\westfall\farcry\core\packages\farcry\WebtopSection.cfc    
3019 ms  159 ms  19      CFC[
W:\users\westfall\farcry\core\packages\farcry\WebtopSubsection.cfc |
getXml() ] from
W:\users\westfall\farcry\core\packages\farcry\WebtopSubsection.cfc      
2593 ms  58 ms   45      CFC[
W:\users\westfall\farcry\core\packages\farcry\WebtopMenu.cfc | getXml() ]
from W:\users\westfall\farcry\core\packages\farcry\WebtopMenu.cfc       
1484 ms  495 ms  3       CFC[
W:\users\westfall\farcry\core\packages\farcry\WebtopRoot.cfc |
init(WebtopXmlDoc = [complex value]) ] from
W:\users\westfall\farcry\core\packages\farcry\WebtopRoot.cfc    
1406 ms  176 ms  8       CFC[
W:\users\westfall\farcry\core\packages\farcry\WebtopSection.cfc |
init(SectionXmlElement = [complex value]) ] from
W:\users\westfall\farcry\core\packages\farcry\WebtopSection.cfc 
1345 ms  11 ms   127     CFC[
W:\users\westfall\farcry\core\packages\farcry\WebtopMenuitem.cfc | getXml()
] from W:\users\westfall\farcry\core\packages\farcry\WebtopMenuitem.cfc 
1234 ms  65 ms   19      CFC[
W:\users\westfall\farcry\core\packages\farcry\WebtopSubsection.cfc |
init(SubsectionXmlElement = [complex value]) ] from
W:\users\westfall\farcry\core\packages\farcry\WebtopSubsection.cfc      
844 ms   19 ms   45      CFC[
W:\users\westfall\farcry\core\packages\farcry\WebtopMenu.cfc |
init(MenuXmlElement = [complex value]) ] from
W:\users\westfall\farcry\core\packages\farcry\WebtopMenu.cfc    
282 ms   282 ms  1       W:\users\westfall\farcry\core\admin\login.cfm  
282 ms   282 ms  1
W:\users\westfall\farcry\projects\farcry_tl\customadmin\login\login.cfm 
108 ms   1 ms    198     CFC[
W:\users\westfall\farcry\core\packages\farcry\WebtopRoot.cfc |
toAttributeString(STATTRIBUTES = [complex value]) ] from
W:\users\westfall\farcry\core\packages\farcry\WebtopRoot.cfc    
94 ms    94 ms   1
W:\users\westfall\farcry\core\tags\formtools\form.cfm   
78 ms    78 ms   1
W:\users\westfall\farcry\core\admin\OnRequestEnd.cfm    
63 ms    63 ms   1       W:\users\westfall\farcry\core\Application.cfm  
63 ms    63 ms   1
W:\users\westfall\farcry\core\tags\farcry\_farcryOnRequestEnd.cfm       
63 ms    63 ms   1
W:\users\westfall\farcry\core\tags\farcry\callProjectApplication.cfm    
63 ms    63 ms   1
W:\users\westfall\farcry\core\tags\farcry\callProjectOnRequestEnd.cfm   
63 ms    63 ms   1
W:\users\westfall\farcry\core\tags\farcry\farcryInit.cfm        
63 ms    63 ms   1
W:\users\westfall\farcry\projects\farcry_tl\www\Application.cfm 
63 ms    63 ms   1
W:\users\westfall\farcry\projects\farcry_tl\www\OnRequestEnd.cfm        
47 ms    47 ms   1       CFC[
W:\users\westfall\farcry\core\packages\fourq\objectBroker.cfc |
addHTMLHeadToWebskins(libraryState = true, library = FormValidation) ] from
W:\users\westfall\farcry\core\packages\fourq\objectBroker.cfc   
47 ms    47 ms   1
W:\users\westfall\farcry\core\tags\farcry\_farcryApplication.cfm        
47 ms    47 ms   1
W:\users\westfall\farcry\core\tags\formtools\farcrybutton.cfm   
16 ms    16 ms   1
W:\users\westfall\farcry\core\tags\farcry\_requestScope.cfm     
15 ms    15 ms   1       CFC[
W:\users\westfall\farcry\core\packages\fourq\objectBroker.cfc |
addHTMLHeadToWebskins(libraryState = true, library = prototypelite) ] from
W:\users\westfall\farcry\core\packages\fourq\objectBroker.cfc   
0 ms     0 ms    127     CFC[
W:\users\westfall\farcry\core\packages\farcry\WebtopMenuitem.cfc |
init(MenuitemXmlElement = [complex value]) ] from
W:\users\westfall\farcry\core\packages\farcry\WebtopMenuitem.cfc        
0 ms     0 ms    2       CFC[
W:\users\westfall\farcry\core\packages\farcry\WebtopRoot.cfc |
mergeRoot(CFC: farcry.core.packages.farcry.WebtopRoot) ] from
W:\users\westfall\farcry\core\packages\farcry\WebtopRoot.cfc    
0 ms     0 ms    1       CFC[
W:\users\westfall\farcry\core\packages\farcry\WebtopSection.cfc |
mergeSection(CFC: farcry.core.packages.farcry.WebtopSection) ] from
W:\users\westfall\farcry\core\packages\farcry\WebtopSection.cfc 
0 ms     0 ms    1       CFC[
W:\users\westfall\farcry\core\packages\fourq\objectBroker.cfc |
addHTMLHeadToWebskins(id = farcryButtonHTMLHead, text = ) ] from
W:\users\westfall\farcry\core\packages\fourq\objectBroker.cfc   
0 ms     0 ms    2       CFC[
W:\users\westfall\farcry\core\packages\security\authentication.cfc |
getUserAuthenticationData() ] from
W:\users\westfall\farcry\core\packages\security\authentication.cfc      
0 ms     0 ms    1       CFC[
W:\users\westfall\farcry\core\packages\security\authentication.cfc |
logout() ] from
W:\users\westfall\farcry\core\packages\security\authentication.cfc      
0 ms     0 ms    3
W:\users\westfall\farcry\core\admin\includes\cfFunctionWrappers.cfm     
0 ms     0 ms    2
W:\users\westfall\farcry\core\admin\includes\utilityFunctions.cfm       
0 ms     0 ms    1
W:\users\westfall\farcry\core\tags\farcry\statsLog.cfm  
0 ms     0 ms    1
W:\users\westfall\farcry\core\tags\formtools\processform.cfm    
0 ms     0 ms    1
W:\users\westfall\farcry\core\tags\formtools\renderHTMLformEnd.cfm      
0 ms     0 ms    1
W:\users\westfall\farcry\core\tags\formtools\renderHTMLformStart.cfm    
0 ms     0 ms    3
W:\users\westfall\farcry\core\tags\webskin\htmlHead.cfm 
0 ms     0 ms    1
W:\users\westfall\farcry\projects\farcry_tl\config\_serverSpecificRequestSco
pe.cfm  
15 ms            STARTUP, PARSING, COMPILING, LOADING, & SHUTDOWN       
5174 ms          TOTAL EXECUTION TIME   

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"farcry-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/farcry-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to