I do have pretty good experience with caching (no problems with expired images etc here), though I agree that it certainly not allways is worth the effort. But especially the generation of static pages (or maybe combined static parts and a cach) can get drastic results. But it is probably you have to tweak for the occasion.

Eelco

Gili wrote:


I learnt very quickly that servlet-layer caching is a no go, at least for me.

All the server-side caches I've been are unable (because they are so generic) to map the dependency between a page and its images. So for example, maybe the page gets a hit, which keeps it in the cache but the images do not, so they expire. Now you end up with a case where you've got a page where most of its images are broken.

Another possibility you might want to consider is that very often it is more expensive to try to do generic server-side caching than doing no caching at all. I ended up adding application-specific caching inside each individual servlet. Doing it in a generic manner would have actually resulted in slower than uncached results.

Gili

Eelco Hillenius wrote:

Hi,

The markup is cached anyway. You probably want the results cached.

There's tons of ways to do it, the most obvious ones being:
- using a seperate cache, e.g. implemented as a servlet filter. I've used http://www.opensymphony.com/oscache/ for this in the past. If you only have to cache bookmarkable pages (and actually caching non-bookmarkable pages is not a good idea as they need session state), that works quite good. - generate static HTML. Many large sites just generate their whole catalogue etc to static html files. You can't get better performance/ scalability than that. So, if you work on a really large scale site, that might be an option.

Above two ways are not integrated with Wicket. We could consider building in native support for caching, but as caching (at least the kind of caching we're talking about here) spans multiple sessions, it would not be a straight match with Wicket's design goals.

Eelco


Christian Essl wrote:

Hi,

My most used pages are product-catalog and product-detail. Both pages are and should be bookmarkable. The product-catalog page uses a ListView to show all products in a category. The detail pages uses a form to add the prodcut to the shopping-basket:

Because the products do change only about every second week I want to cache the markup for both pages (or better the actual panels which show the products).

Is this possible in Wicket?

Thanks,
Christian

___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de



-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user






-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to