You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Jos Snellings <jo...@upperware.biz> on 2013/06/25 06:54:34 UTC

Use LRU cache

Hi,

Just reported the issue and proposed a patch, though I am not very happy
with it.

+ :  it intervenes only in cocoon-sax
-  : it introduces a new dependency (on spring).
Question: would it be better to decide in cocoon-sitemap if an LRU cache is
used?

The constructor would have an extra parameter then. the template is loaded
(or not) in the
constructor, which is a bit early.

What do you think?

Cheers,
Jos


-- 
We should be careful to get out of an experience only the wisdom that is
in it - and stay there, lest we be like the cat that sits down on a hot
stove-lid.  She will never sit down on a hot stove-lid again - and that
is well; but also she will never sit down on a cold one any more.
        -- Mark Twain
 <http://www.brainyquote.com/quotes/quotes/t/thomashobb118630.html>