Take a look at cacheable.xsp sample. IIRC, it works correctly.

Vadim

> -----Original Message-----
> From: Jozsa Kristof [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 12, 2002 6:33 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Problems with Cacheable
> 
> Noone had did such ever really? It's possible, but I doubt it..
> 
> On Mon, Mar 11, 2002 at 10:22:04PM +0100, Jozsa Kristof wrote:
> > Hi,
> >
> > I have a custom Generator, which pulls XML data from EJBs. I'd like
to make
> > this generator cacheable, based on the url. I've added the following
to my
> > Generator:
> >
> > - implemented Cacheable
> >
> > - wrote generateKey(), which uses
HashUtil.hash(URL+parameter1+param2) to
> generate
> > the cache key
> >
> > - wrote generateValidity(), which returns
NOPCacheValidity.CACHE_VALIDITY,
> > for testing purposes (ie. this cache entry will last forever)
> >
> >
> > Now when I browse the Cocoon-generated pages, I see the cache seem
to work
> > properly, based on the log messages (stores at the first hit,
retreives from
> > cache after); but watching logs on the EJB side meanwhile, I see
that
> > _every_hit_ is still pulled from there, every hit on the website
generates
> > database access, etc.
> >
> > What does that mean?
> >
> > Christopher
> >
> > ps. on Cocoon 2.0.1, JBoss3+Jetty as container, linux x86
> > --
> > .Digital.Yearning.for.Networked.Assassination.and.Xenocide


---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to