> From: Rune Sandnes [mailto:[EMAIL PROTECTED]]
> 
> I have set up caching in an XSP page with several ESQL statements.
> One version bases the CacheValidity object on a timestamp that it gets
from
> the database, like this:
> 
>      public CacheValidity generateValidity() {
>           return new TimeStampCacheValidity(documentTimestamp);
>      }
> 
> 
> But in some cases I just want to base the caching on a simple timeout,
like
> this:
> 
>      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.

Vadim

> Is there any way to trigger the cache mechanism before the ESQL
statements to
> save computing time in the second example?
> 
> 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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to