Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 22427 invoked by uid 500); 16 Apr 2001 18:51:32 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 22407 invoked from network); 16 Apr 2001 18:51:30 -0000 From: "Tony" To: Subject: RE: Cacheproblem Date: Mon, 16 Apr 2001 15:52:56 -0300 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Importance: Normal X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N 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 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 > > > > > > > xmlns:util="http://www.apache.org/1999/XSP/Util"> > > > > > 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(); > > > > > > now = new Date(); > > > now > > > > > > > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. > > To unsubscribe, e-mail: > For additional commands, e-mail: --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: