Rock It Till You Drop It

Mar 12, 2004
1 min read
[@657]

JavaOSCache

I've implemented a caching scheme for my blogs using OSCache.

I elected to use the tags for the blog. I wrapped all the relevant pages with <os:cache time="-1">...</os:cache>, and <os:flush/> is called whenever the content is updated. Works like a charm.

The linkblog was little bit more work, as it only uses one single JSP page. I had to write a CacheFilter which disables caching whenever certain request parameters are specified.

Overall it took longer to test everything than writing the code. The speed and memory consumption improvements are well worth the effort.

MusicRock It Till You Drop It

Rock It Till You Drop It



Where did the links go? Visit my new Linkblog.