cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bertrand Delacretaz <>
Subject new PDF caching sample - unable to get caching to work
Date Thu, 01 May 2003 14:53:16 GMT
I'm unable to get caching to work in a sample that I just added to the  
FOP block (under src/blocks/fop/samples/).

Problem: the Generator output is cached correctly but FOP is called  
every time to convert the XSL-FO to PDF.

What I'm trying to do is to have Cocoon cache the generated PDF to  
avoid calling FOP again if the Generator says that the data is sill  

Here's the pipeline (full sitemap is in CVS):

<map:pipeline type="caching">
             <!-- reuse the XSP caching example for our caching test -->
             <map:match pattern="cache-test-*-*-*.pdf">
                 <map:transform src="cache-test/xsp-sample-to-fo.xsl">
                     <map:parameter name="pages" value="{3}"/>
                 <map:serialize type="fo2pdf"/>


Am I doing something wrong?
I read about the caching-point pipeline but IIUC it shouldn't be needed  
in this case.

There is a bug at that says  
"Caching problem with XSP, XSL and cocoon pseudo protocol" but it's not  
the same problem I think.

Thanks for any hints.

View raw message