Hi,
In order to improve the performance of our project, I'd like to use a form of caching.
I was thinking of something in the tiles-defs.xml as the following:
<definition name="menu" path="/menu.jsp" time-to-live="3600000">
...
</definition>
This would cache the menu-tile for one hour.
Another example:
<definition name="item" path="/itembody.jsp" time-to-live="3600000" key="id">
...
</definition>
This would cache the item-tile for one hour, depending on the id of the item. So, for
every item, a separate cache would be made. The parameter for the key must come from
the session or the request. The key can also be a comma-separated list of values.
I've searched for something similar, but could not find it. If this already exists,
sorry for disturbing you. If it doesn't, I would be happy to contribute code for it.
I was thinking of using the code from jakarta-commons-cache as a basis.
Sincerely,
Pieter Coucke
eXpanded Media Belgium
http://www.expandedmedia.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>