> Do any of you use cfcache?  I am inheriting a site that uses 
> it everywhere, even on pages that change every 30 seconds or 
> more (its an auction type site, so every bid would change the 
> page)  In my experience, I try to optimize the DB and my 
> queries and processing to the Nth degree, so I have never had 
> a need for cfcache.  Does this scale well, or has anyone had 
> problems or issues they have run into using it?

CFCACHE can certainly scale, and page-level caching can be useful even for
short intervals, if enough people visit the page. Ideally, you should be
using some sort of mechanism that takes advantage of If-Modified-Sincee HTTP
request headers, so that you can skip processing the page if it hasn't
changed. CFCACHE provides this by default in CF 7, and if you only want
client-side caching (the HTTP request header stuff mentioned above), you can
use that option.

Here's a good overview of how caching works in CF:
http://www.adobe.com/devnet/coldfusion/articles/cfcaching.html

Of course, there is some overhead in server-side page-level caching, so you
do want to limit it to cases where the cached page is likely to be reused.
As far as I can tell, there's no overhead in client-side caching, so you
should go ahead and use that wherever possible.

If you want to cache segments of a page, there's a nice custom tag for this:
http://www.bpurcell.org/blog/index.cfm?entry=963&mode=entry

Again, you have to calculate whether those segments are likely to be reused,
of course.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267160
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to