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
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
[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.
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
: 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
]
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
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
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
@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
@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() {
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
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
.
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
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
: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
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
: 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
)
-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
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
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
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
-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
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
.
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
-
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
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
: 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
!
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
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
. 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
,
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
31 matches
Mail list logo