cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 30432] New: - cinclude:cached-include doesn't work
Date Mon, 02 Aug 2004 10:55:57 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30432>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30432

cinclude:cached-include doesn't work

           Summary: cinclude:cached-include doesn't work
           Product: Cocoon 2
           Version: 2.1.5
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: general components
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: tomasz.bech@bull.com.pl


I've posted it on the group, no answer/help so I consider it as a bug.

Hi all,
I try to use cinclude:cached-include without a luck - content is not cached.
Cocoon-2.1.5
in sitemap:
           <map:match pattern="test.xml">
               <map:generate type="file" src="testxml"/>
               <map:transform type="cinclude">
                   <map:parameter name="expires" value="60"/>
                   <map:parameter name="source" value="file:/c:/temp"/>
               </map:transform>
               <map:serialize type="xml"/>
           </map:match>

in test.xml:
<?xml version="1.0"?>

<test xmlns:cinclude="http://apache.org/cocoon/include/1.0">
   <cinclude:cached-include src="cocoon:/dotest.xml"/>
</test>          
I hit 'http:/localhost/test.xml' - dotest.xml is done (through pipeline it calls
servlet - so it is why I really see that it is reloaded).
Every next hit to test.xml, hits dotest.xml - but for one minute shouldn't.
What is more funny - the file is created in c:/temp only the first time, during
60 sec no change in the file - its DATES - after 60 s, file changes the
modification date. But request to dotest.xml is always done!!!
So in this example caching doesn't work.

Mime
View raw message