cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony" <t...@employer.com.br>
Subject RE: Cacheproblem
Date Mon, 16 Apr 2001 18:52:56 GMT
Ok

Now I've got my pages cached...
I saw a previous post that save me ( Thanks Donald) :)

	public boolean isCacheable (HttpServletRequest request) {
        return true;
      }
was the answer.
Probalby the  <util:cacheable/> template is missing this...


Tony.





> -----Original Message-----
> From: tony [mailto:tony@employer.com.br]
> Sent: segunda-feira, 16 de abril de 2001 11:13
> To: cocoon-users@xml.apache.org
> Subject: Cacheproblem
> 
> 
> 
> Hi all,
> 
> I saw previous XSP cache related problems in the list without 
> proper answers
> and I found myself in the same situation. I read the doc on how 
> to make the
> cache working, but I was unable to get it going.
> 
> Cocoon 1.8.2
> Tomcat 3.2.1
> 
> (I am using Tomcat without apache for the developement.)
> 
> If the cache works, this simple XML example should return the 
> first XSP buid
> time stamp and not change on each refresh as it does. My 
> Cocoon.prperties is
> untouched since installation ( caching ON). What is wrong ?
> 
> Thanks for any suggestions,
> 
> Tony.
> 
> Cocoon.properties
> 
> # the default cache
> cache = org.apache.cocoon.cache.CocoonCache
> #uncomment this to disable ALL page caching
> #cache = org.apache.cocoon.cache.NoCache
> #Change this to false to disable all Last-Modified headers
> #This will also disable client-side and proxy caching, but not Cocoon
> #internal caching.
> #Content that is not cached by Cocoon will not have a 
> Last-Modified header.
> lastmodified = true
> 
> 
> This is my test.xml
> 
> <?xml version="1.0"?>
> <?cocoon-format type="text/html"?>
> <?cocoon-process type="xsp"?>
> <?cocoon-process type="xslt"?>
> <?xml-stylesheet href="manager.xsl" type="text/xsl"?>
> <xsp:page language="java" xmlns:xsp="http://www.apache.org/1999/XSP/Core"
> xmlns:util="http://www.apache.org/1999/XSP/Util">
> 	<xsp:structure>
> 		 <util:cacheable/>
> 	</xsp:structure>
> 	<xsp:logic>
>       public boolean hasChanged (Object context) {
>        return false; // to cache everything and leave
>        // memory management up to Cocoon
> 		}
>        // Define a variable to hold the time of day
>       Date now = new Date();
>     </xsp:logic>
> 	<page>
> 		<content>
> 			<paragraph>
> 			<xsp:logic>
> 					now = new Date();
> 			</xsp:logic>
> 			<xsp:expr>
> 				now
> 			</xsp:expr>
> 		</content>
> 	</page>
> </xsp:page>
> 
> 
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message