Re: XSLT import/include errors
Francesco Chicchiriccò <[email protected]>
| Newsgroups | gmane.text.xml.cocoon.user |
|---|---|
| Message-ID | <[email protected]> |
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ò > <[email protected] <mailto:[email protected]>> 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/ > <http://people.apache.org/%7Eilgrosso/> > > > 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 Member http://people.apache.org/~ilgrosso/