Re: Cache Panel

2007-10-24 Thread Joe Toth
How would I render the component and stick the contents into a label? If possible, I would like to do something like the following... String render() { String markup = cache.get(); if (cacheExpired || markup == null) { markup = render(); } return markup; } I know there

Re: Cache Panel

2007-10-24 Thread Igor Vaynberg
you are talking about the markup for an actual component? you store that in the database? in that case let your component implement imarkupcachekeyprovider that generates different keys based on some timeout or whatever it is you need. -igor On 10/24/07, Joe Toth [EMAIL PROTECTED] wrote: How

Cache Panel

2007-10-23 Thread Joe Toth
I have a bunch of Panels where the generated HTML can be cached for a period of time. What's the best way to go about doing something like this? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Cache Panel

2007-10-23 Thread Joe Toth
There are some operations that are kind of complicated, rather than dig into those operations and try to cache things, it would be A LOT easier to just stick a cache in front of it all. On Tue, 2007-10-23 at 21:01 -0500, Jeremy Thomerson wrote: The first thing to ask yourself would be if you

Re: Cache Panel

2007-10-23 Thread Igor Vaynberg
use any cache you want to cache it, and stick the contents into a label -igor On 10/23/07, Joe Toth [EMAIL PROTECTED] wrote: There are some operations that are kind of complicated, rather than dig into those operations and try to cache things, it would be A LOT easier to just stick a cache