You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Alexander Klimetschek <al...@mindquarry.com> on 2007/04/18 11:37:01 UTC

Cache global or per-servlet/per-sitemap?

Hi all,

I am currently debugging and fixing 
https://issues.apache.org/jira/browse/COCOON-2044, and I want to know if it 
is feasible to configure multiple caches, one for each sitemap?

Alex

-- 
Alexander Klimetschek
http://www.mindquarry.com


Re: Cache global or per-servlet/per-sitemap?

Posted by Grzegorz Kossakowski <gk...@apache.org>.
Alexander Klimetschek napisał(a):
> Grzegorz Kossakowski schrieb:
>> Thanks for investigating into it. Although I do not know much about
>> cache internals it seems reasonable for me to have one cache per
>> servlet, actually. As long as you don't use <map:mount> you have one
>> sitemap per servlet so desired effect should be achieved.
> 
> I think there are reasons for a global cache, probably the
> implementation of the caches itself, as some save onto disk
> (target/work/...) and they would need different directories each.

After giving it more thinking I change my opinion. There are plenty of reasons to keep one, global cache. Otherwise, exactly the same
resource would be cached several times in different blocks.

-- 
Grzegorz Kossakowski
http://reflectingonthevicissitudes.wordpress.com/

Re: Cache global or per-servlet/per-sitemap?

Posted by Alexander Klimetschek <al...@mindquarry.com>.
Grzegorz Kossakowski schrieb:
> Thanks for investigating into it. Although I do not know much about cache internals it seems reasonable for me to have one cache per
> servlet, actually. As long as you don't use <map:mount> you have one sitemap per servlet so desired effect should be achieved.

I think there are reasons for a global cache, probably the implementation of 
the caches itself, as some save onto disk (target/work/...) and they would 
need different directories each.

Alex

-- 
Alexander Klimetschek
http://www.mindquarry.com


Re: Cache global or per-servlet/per-sitemap?

Posted by Grzegorz Kossakowski <gk...@apache.org>.
Alexander Klimetschek napisał(a):
> Hi all,
> 
> I am currently debugging and fixing
> https://issues.apache.org/jira/browse/COCOON-2044, and I want to know if
> it is feasible to configure multiple caches, one for each sitemap?

Thanks for investigating into it. Although I do not know much about cache internals it seems reasonable for me to have one cache per
servlet, actually. As long as you don't use <map:mount> you have one sitemap per servlet so desired effect should be achieved.

I really think that sitemap logic should not manage cache but just use it.

What do you think?

-- 
Grzegorz Kossakowski
http://reflectingonthevicissitudes.wordpress.com/

Re: Cache global or per-servlet/per-sitemap?

Posted by Reinhard Poetz <re...@apache.org>.
Alexander Klimetschek wrote:
> Hi all,
> 
> I am currently debugging and fixing 
> https://issues.apache.org/jira/browse/COCOON-2044, and I want to know if 
> it is feasible to configure multiple caches, one for each sitemap?

You can configure the "cache-role" for each pipeline.

-- 
Reinhard Pötz           Independent Consultant, Trainer & (IT)-Coach 

{Software Engineering, Open Source, Web Applications, Apache Cocoon}

                                        web(log): http://www.poetz.cc
--------------------------------------------------------------------