How can I cache a struts application?
I've recently looked at some cache implementations such as OSCache, EHCache and Memcached. Could someone give me an idea how I might add a cache to a struts application?
The most effective form of cache seems to be to cache the entire HTTP response. That bypasses all application /database processing. But for a struts application, you'd have to cache all requests for *.do (in my case). This cannot work as I have a shopping cart on the page with a contents summary. This would get cached and not reflect any updates.
All I can think to do is some POJO caching in the actions. That seems least effective. Is there some other way please..?
Shaggy posted this at 04:46 — 22nd February 2009.
They have: 121 posts
Joined: Dec 2008
If there are elements on the page that are changeable with user actions/input, then I don't think it would be wise to do very aggressive caching no matter what platform/language/framework you use.
Cheers,
Shaggy
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.