You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by Chris Kimpton <ki...@yahoo.com> on 2002/03/19 19:13:09 UTC
RE: Portlet.isCacheable?
Hi,
>
> Take a look at the WebPagePortlet, which caches its own content
>
This does it by creating the ECS element and saving it into the
AbstractPortlet - which seems fine by me...
...just wary of any "gotchas" in the VelocityPortlet - since that
gets Velocity to put the expanded template directly onto the output
stream.
I plan to change this - at least for when caching is turned on - any
reason why I can't just always do this, that is, expand the template
into a string and then wrap it in an ECS StringElement ?
TIA,
Chris
=====
http://www.soccer2002.org.uk - join in and win CA$H!
__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Portlet.isCacheable?
Posted by Chris Kimpton <ki...@yahoo.com>.
Hi,
--- Chris Kimpton <ki...@yahoo.com> wrote:
>
> ...just wary of any "gotchas" in the VelocityPortlet - since that
> gets Velocity to put the expanded template directly onto the output
> stream.
>
I think I just found one - my customizer now has all the buttons at
the bottom of the page - I guess I should do as the current
VelocityPortlet does when caching is turned off, ie expand the
template directly to the output stream...
Chris
=====
http://www.soccer2002.org.uk - join in and win CA$H!
__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Portlet.isCacheable?
Posted by Chris Kimpton <ki...@yahoo.com>.
Hi,
...and I want to actually cache several variations of content for a
given portlet.
That is, based on parameters coming in, the portlet may display one
or more variations. Thus I want to have a map of these cached
variations, keyed on the parameters that come in - like the getHandle
stuff - only based on the current requests parameters.
Obviously this is only useful for non-user specific content - as I
don't plan to cache it per user (unless someone thinks that would be
useful) - and this could lead to some heavy memory usage...
Does this sound ok?
Regards,
Chris
=====
http://www.soccer2002.org.uk - join in and win CA$H!
__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>