We gave the new cache taglib
(http://jakarta.apache.org/taglibs/doc/cache-doc/intro.html
<http://jakarta.apache.org/taglibs/doc/cache-doc/intro.html> ) a try.

While it seems to be accurately caching the body of the tag.  It appear to
still be executing the body code each time the page is retrieved.

For example:

<cache:cache key="time">
        <% long time = System.currentTimeMillis(); String t =
Long.toString(time); 
                System.out.println("Time: " + t);
        %>
        Time: <%= t %>
</cache:cache>

I would expect the same time to be displayed when I hit refresh in the
browser and it is.  I would also only expect the time to be printed to the
console once (at least until the cache times out).  However, it is printed
each time I hit refresh in the browser.

Are we misunderstanding how it is supposed to work?

Thanks

Reply via email to