cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jos Snellings <jos.snelli...@upperware.biz>
Subject Re: XSLT import/include errors
Date Mon, 24 Jun 2013 08:25:04 GMT
OK, having a short look for:
<configurator:settings>
        <configurator:property
name="org.apache.cocoon.sax.lrucache-enabled" value="true"/>
later today



On Mon, Jun 24, 2013 at 10:05 AM, Francesco Chicchiriccò <
ilgrosso@apache.org> wrote:

>  On 24/06/2013 09:57, Jos Snellings wrote:
>
>    Hi Francesco et al,
>
>  Good idea. Where would you put the lever to switch LRU cache on/off?
>  - sitemap?
>  - cocoon spring configuration files?
>
>
> +1 for settings - as currently done for sitemap reload, for example.
>
> Regards.
>
>
>   So, the context is limited to developers who want to keep seeing
> instant results ...
>
> Cheers,
>  Jos
>
>  On Mon, Jun 24, 2013 at 9:43 AM, Francesco Chicchiriccò <
> ilgrosso@apache.org> wrote:
>
>> On 22/06/2013 11:25, gelo1234 wrote:
>>
>>>  And of course I'm using noncaching pipeline :)
>>>
>>> When I make a change in the main XSL file (that from sitemap), the
>>> change is visible.
>>> When I make a change in any of the imported/included (from main XSL) XSL
>>> file, the change is not visible. Cocoon serves
>>>  the Content from cache.-- Francesco Chicchiriccò ASF Member, Apache
>>> Syncope PMC chair, Apache Cocoon PMC Member
>>> http://people.apache.org/~ilgrosso/
>>>
>>
>> Hi,
>> this has nothing to do with pipeline caching: with pipeline caching, the
>> whole pipeline execution is cached (in memory, by default) and thus
>> subsequent calls to the same pipeline won't trigger any pipeline component
>> execution.
>>
>> What is causing you headaches (same did to me) is a local LRU cache
>> managed by some SAX components, including the XSLTTransformer [1]; as you
>> can see from the load() method, in fact, only the last modified timestamp
>> of the main XSLT file is taken into account for deciding whether the cached
>> template should be read.
>>
>> The local LRU cache is very useful in production but very annoying during
>> development: I guess it should stay enabled by default - as currently - but
>> also given the possibility to switch it off via some configuration
>> parameter: who wants to file an issue on JIRA and provide a patch? ;-)
>>
>> Regards.
>>
>> [1]
>> http://svn.apache.org/repos/asf/cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/component/XSLTTransformer.java
>>
>    --
> Francesco Chicchiriccò
>
> ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Memberhttp://people.apache.org/~ilgrosso/
>
>


-- 
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>

Mime
View raw message