Re: @Cached and caching in general

2008-03-25 Thread Francois Armand
Tobias Marx wrote: Wouldn't it be useful to make the @Cache annotation the default annotation for all methods? I can not imagine a case where it would make sense that during the rendering of a page returns different results... Just an example : you are in a loop (or grid or a beaneditor any

Re: @Cached and caching in general

2008-03-25 Thread superoverdrive
Datum: Tue, 25 Mar 2008 13:33:19 +0100 Von: Francois Armand [EMAIL PROTECTED] An: Tapestry users users@tapestry.apache.org Betreff: Re: @Cached and caching in general Tobias Marx wrote: Wouldn't it be useful to make the @Cache annotation the default annotation for all methods

Re: @Cached and caching in general

2008-03-25 Thread Francois Armand
[EMAIL PROTECTED] wrote: Yes, you are right. But loops are usually inside of components and pages contain those componentsbut all methods in the page itself could be @Cache methods in my opinion if you do a component based approach and always package logical widgets into a component.

Re: @Cached and caching in general

2008-03-25 Thread Davor Hrg
caching every method by default is definitely too error prone, and unexpected for most people. On Tue, Mar 25, 2008 at 3:23 PM, Francois Armand [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Yes, you are right. But loops are usually inside of components and pages contain those

AW: AW: @Cached and caching in general

2008-03-19 Thread Martin Kersten
: Davor Hrg [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 19. März 2008 10:42 An: Tapestry users Betreff: Re: AW: @Cached and caching in general I agree that this is not something to take on lightly, and data should be cached, and rendering left as is. but besides caching this king of component

Re: AW: @Cached and caching in general

2008-03-19 Thread Andreas Andreou
] Gesendet: Dienstag, 18. März 2008 17:45 An: Tapestry users Betreff: @Cached and caching in general I have not used T5 yet, but would @Cached use the file system for caching HTML fragments similiar to caching mechanisms in some php frameworks? Or is this a pure memory

Re: AW: @Cached and caching in general

2008-03-19 Thread Davor Hrg
and cut it out or grabbing part of the DOM during same request. Just wondering... . -Ursprüngliche Nachricht- Von: Davor Hrg [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 19. März 2008 10:42 An: Tapestry users Betreff: Re: AW: @Cached and caching in general I agree

@Cached and caching in general

2008-03-18 Thread Tobias Marx
I have not used T5 yet, but would @Cached use the file system for caching HTML fragments similiar to caching mechanisms in some php frameworks? Or is this a pure memory-based cache? I am thinking about migrating an old PHP application to T5 - it has really a lot of traffic and any users are

Re: @Cached and caching in general

2008-03-18 Thread Davor Hrg
@Cached is an annotation that caches method call result per request. so while page is rendering if multiple pieces of template require that property it gets called only once... Davor Hrg On Tue, Mar 18, 2008 at 5:44 PM, Tobias Marx [EMAIL PROTECTED] wrote: I have not used T5 yet, but would

Re: @Cached and caching in general

2008-03-18 Thread Adam Zimowski
@Cache works on per request basis, so that anything you return from a method which has @Cache annotation will get actually built or retrieved only once - but only once per http request. So if you're building an expensive HTML fragment: @Cached public String buildExpensiveHtmlFragment() {

Re: @Cached and caching in general

2008-03-18 Thread Tobias Marx
output and this way save lots of performance. Original-Nachricht Datum: Tue, 18 Mar 2008 17:52:11 +0100 Von: Davor Hrg [EMAIL PROTECTED] An: Tapestry users users@tapestry.apache.org Betreff: Re: @Cached and caching in general @Cached is an annotation that caches method

AW: @Cached and caching in general

2008-03-18 Thread Martin Kersten
such a general caching service is needed. But as far as I know Tapestry and its agility, all you need -Ursprüngliche Nachricht- Von: Tobias Marx [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 18. März 2008 17:58 An: Tapestry users Betreff: Re: @Cached and caching in general Ok. Thanks

AW: @Cached and caching in general

2008-03-18 Thread Tobias Marx
. Original-Nachricht Datum: Tue, 18 Mar 2008 18:01:40 +0100 Von: Martin Kersten [EMAIL PROTECTED] An: Tapestry users users@tapestry.apache.org Betreff: AW: @Cached and caching in general @Chached is only used during a single page rendering cycle. It would not apply to your situation

Re: @Cached and caching in general

2008-03-18 Thread Filip S. Adamsen
Datum: Tue, 18 Mar 2008 11:53:09 -0500 Von: Adam Zimowski [EMAIL PROTECTED] An: Tapestry users users@tapestry.apache.org Betreff: Re: @Cached and caching in general @Cache works on per request basis, so that anything you return from a method which has @Cache annotation will get actually built

Re: AW: @Cached and caching in general

2008-03-18 Thread Filip S. Adamsen
:01:40 +0100 Von: Martin Kersten [EMAIL PROTECTED] An: Tapestry users users@tapestry.apache.org Betreff: AW: @Cached and caching in general @Chached is only used during a single page rendering cycle. It would not apply to your situation. (as far as I know) Source: http://sqllyw.wordpress.com/2008

AW: @Cached and caching in general

2008-03-18 Thread Tobias Marx
The problem is context I guess. Usally your component depends on lots of stuff. Parameters, URL, Services, Page-state, component state, HTTP-Parameters and so on. Yes...but it must be possible somehow as some PHP template engines also do it. Isn't there already some mechanism in the

Re: AW: @Cached and caching in general

2008-03-18 Thread Tobias Marx
: AW: @Cached and caching in general A factor 100?? C'mon. If, and I stress IF, your application would benefit that much from this, fine. But Tapestry 5 applications in general would - I guarantee you - not see such an improvement. -Filip On 2008-03-18 18:07, Tobias Marx wrote: My

AW: @Cached and caching in general

2008-03-18 Thread Martin Kersten
) -Ursprüngliche Nachricht- Von: Tobias Marx [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 18. März 2008 18:15 An: Tapestry users Betreff: AW: @Cached and caching in general The problem is context I guess. Usally your component depends on lots of stuff. Parameters, URL, Services

Re: AW: @Cached and caching in general

2008-03-18 Thread Filip S. Adamsen
Von: Filip S. Adamsen [EMAIL PROTECTED] An: Tapestry users users@tapestry.apache.org Betreff: Re: AW: @Cached and caching in general A factor 100?? C'mon. If, and I stress IF, your application would benefit that much from this, fine. But Tapestry 5 applications in general would - I guarantee

AW: @Cached and caching in general

2008-03-18 Thread Martin Kersten
2008 17:45 An: Tapestry users Betreff: @Cached and caching in general I have not used T5 yet, but would @Cached use the file system for caching HTML fragments similiar to caching mechanisms in some php frameworks? Or is this a pure memory-based cache? I am thinking about migrating an old PHP

Re: @Cached and caching in general

2008-03-18 Thread Tobias Marx
Zimowski [EMAIL PROTECTED] An: Tapestry users users@tapestry.apache.org Betreff: Re: @Cached and caching in general @Cache works on per request basis, so that anything you return from a method which has @Cache annotation will get actually built or retrieved only once - but only once per http

AW: @Cached and caching in general

2008-03-18 Thread Tobias Marx
-Nachricht Datum: Tue, 18 Mar 2008 18:22:01 +0100 Von: Martin Kersten [EMAIL PROTECTED] An: Tapestry users users@tapestry.apache.org Betreff: AW: @Cached and caching in general You might want to know what tapestry does with your templates. Tapestry reads your template and parses

Re: AW: @Cached and caching in general

2008-03-18 Thread Davor Hrg
Betreff: Re: AW: @Cached and caching in general A factor 100?? C'mon. If, and I stress IF, your application would benefit that much from this, fine. But Tapestry 5 applications in general would - I guarantee you - not see such an improvement. -Filip On 2008-03-18 18:07, Tobias

RE: @Cached and caching in general

2008-03-18 Thread Jonathan Barker
. Mimic what is done currently, but perhaps schedule refreshes with Quartz and keep it within the same app. Jonathan -Original Message- From: Tobias Marx [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2008 1:35 PM To: Tapestry users Subject: AW: @Cached and caching in general I

Re: AW: @Cached and caching in general

2008-03-18 Thread Fernando Padilla
- Von: Tobias Marx [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 18. März 2008 17:45 An: Tapestry users Betreff: @Cached and caching in general I have not used T5 yet, but would @Cached use the file system for caching HTML fragments similiar to caching mechanisms in some php frameworks

Re: AW: @Cached and caching in general

2008-03-18 Thread Andreas Andreou
will tell you! Cheers, Martin (Kersten) -Ursprüngliche Nachricht- Von: Tobias Marx [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 18. März 2008 17:45 An: Tapestry users Betreff: @Cached and caching in general I have not used T5 yet, but would @Cached use

Re: AW: @Cached and caching in general

2008-03-18 Thread Davor Hrg
: Tobias Marx [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 18. März 2008 17:45 An: Tapestry users Betreff: @Cached and caching in general I have not used T5 yet, but would @Cached use the file system for caching HTML fragments similiar to caching mechanisms in some php frameworks

Re: AW: @Cached and caching in general

2008-03-18 Thread Davor Hrg
! Cheers, Martin (Kersten) -Ursprüngliche Nachricht- Von: Tobias Marx [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 18. März 2008 17:45 An: Tapestry users Betreff: @Cached and caching in general I have not used T5 yet, but would

Re: @Cached and caching in general

2008-03-18 Thread Howard Lewis Ship
the rendering of a page returns different results... Original-Nachricht Datum: Tue, 18 Mar 2008 11:53:09 -0500 Von: Adam Zimowski [EMAIL PROTECTED] An: Tapestry users users@tapestry.apache.org Betreff: Re: @Cached and caching in general @Cache works on per request

Re: AW: @Cached and caching in general

2008-03-18 Thread Howard Lewis Ship
. März 2008 17:45 An: Tapestry users Betreff: @Cached and caching in general I have not used T5 yet, but would @Cached use the file system for caching HTML fragments similiar to caching mechanisms in some php frameworks? Or is this a pure memory-based cache? I am thinking about

Re: AW: @Cached and caching in general

2008-03-18 Thread Fernando Padilla
, Martin (Kersten) -Ursprüngliche Nachricht- Von: Tobias Marx [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 18. März 2008 17:45 An: Tapestry users Betreff: @Cached and caching in general I have not used T5 yet, but would @Cached use the file system for caching HTML