Hello,
this is more Coldbox related, but I found it in our current Contentbox project. I realized that renderView takes in some cases a lot of time (around 18ms, this is a lot since not much happens in our view)
I found that in system/plugins/Renderer.cfc in discoverViewPaths() which is called by RenderView() uses a file check:
// Check for view helper convention
dPath = getDirectoryFromPath( refMap.viewPath );
if( fileExists(expandPath( refMap.viewPath & “Helper.cfm”)) ){
refMap.viewHelperPath = refMap.viewPath & “Helper.cfm”;
}
// Check for directory helper convention
else if( fileExists( expandPath( dPath & listLast(dPath,"/") & “Helper.cfm” ) ) ){
refMap.viewHelperPath = dPath & listLast(dPath,"/") & “Helper.cfm”;
}
I’m wondering if caching could be implemented here for the file check, otherwise it will generate a lot of IO on high traffic apps.
Thanks,
Gunnar