cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Upayavira>
Subject Re: JXTG and caching
Date Tue, 01 Jun 2004 09:16:32 GMT
Leszek Gawron wrote:

> Sylvain Wallez wrote:
>>  <page jx:cache-key="" 
>> jx:cache-validity="">
> One question: if this NewsHelper is NOT an avalon component (or object 
> instantiated by flow.createObject) then it doesn't have acces to any 
> backend logic or data (for example database that stores expiration 
> time for different news services). Would it be possible to instantiate 
> this object via flow.createObject analogy?

Of course. You could equally well say:

sendPage("my-url", {"myObject", myAvalonObject});

<page jx-cache-key="myObject.getValidity()">

Regards, Upayavira

View raw message