Daniel,
> Got this Farcry site. Isn't still released due to performance issues. > When I use the cache everything works quite fine. But since the > execution time is VERY high before the cache is generated ColdFusion > ends up with too many queued requests and the site becomes unuseable.
First of all, your query times do not look that discouraging. However, you have lots of white space on your page. (To me, it seems you are sending the entire FarCry code to the browser.) I would recommend to make copius use of ColdFusion's <cfsetting> tag, wrapping not only your page templates but the display handlers, too:
<cfsetting enablecfoutputonly="yes" /> ... <!--- page content goes here ---> ... <cfsetting enablecfoutputonly="no" />
Thus, only the parts enclosed by <cfoutput></cfoutput> pairs will be .. well .. output in (i.e., sent to) the browser. I'm confident that doing so will bring your loading time down to appr. 4 seconds.
> Oh, one more thing. When adding cache to a dmNews page it caches the > content, but since my cache is inside the display method farcry still > does the getdata on the news object. Is there any way around this?
On to your cache question: On our site, the code looks like shown below. We almost always cache entire containers. (There is also a tutorial on the FarCry web site that should give you an idea about FarCry's caching abilities.)
...
<cfimport taglib="/18sfarcry/farcry_core/tags/webskin" prefix="skin" />
...
<!--- cache the main content area --->
<skin:cache
cacheBlockName="section"
cacheName="#cacheName#"
minutes="240"
>
<!--- the main column container goes here --->
<con:container
label="#stObj.objectID#_main"
>
</skin:cache>
...Using the technique described, I usually get the time down to approximately a tenth of the time the uncached version needs to load.
HTH, Thomas
-- Thomas Prochazka (w) www.1-800-solve.com (e) [EMAIL PROTECTED]
--- You are currently subscribed to farcry-dev as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
