cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: [C2] DeltaTimeCacheValidity?
Date Wed, 27 Mar 2002 13:16:11 GMT
> From: Rune Sandnes [mailto:rune@klapp.no]
> 
> > >      public CacheValidity generateValidity() {
> > >           return new TimeStampCacheValidity(documentTimestamp);
> > >      }
> > > or
> > >      public CacheValidity generateValidity() {
> > >           return new DeltaTimeCacheValidity(10);
> > >      }
> > >
> > > If I am not mistaken, the ESQL statements will be performed
> > > anyway in both cases.
> >
> > You are mistaken. XSP will be executed only when returned
> > validity is null or not valid anymore (for the same key), or
> > this is the first execution.
> 
> That is very good, I think we will be basing the caching on
> DeltaTimeCacheValidity mostly.
> But now I have to ask, how does the first example with
> TimeStampCacheValidity actually work?

>From what I see - it does not work.


> It is dependent on an ESQL
> statement to look up the variable documentTimestamp. In that case it
> must perform the ESQL statements first? Is there a difference between
> how DeltaTimeCacheValidity and TimeStampCacheValidity is handled?

No. Order of execution is always:

generateKey()
generateValidity()
generate()


Vadim

> 
> Regards,
> Rune,
> Trondheim,
> Norway
 


---------------------------------------------------------------------
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