[opencms-dev] flex cache question about included jsps

Nacho Fernández Orellana nacho.fernandez.orellana at gmail.com
Fri Jun 19 08:48:32 CEST 2009


Hi list,

We have a problem with incorrect caching by flex cache in a page not cached
by itself but including 2 cached jsps.

More precisely, we have a jsp page that includes 2 other jsp pages that we
want flex cache to store (based on parameters). For the includes we use this
code:

<cms:include file="jsp_sub-element_to_include">
      <cms:param name="parameter1"><%= value_for_parameter_1 %></cms:param>
      <cms:param name="parameter2"><%= value_for_parameter_2 %></cms:param>
</cms:include>

We have set these pages to include to be cacheable with
"params=(parameter1,parameter2);", and have left the including jsp with the
default empty "cache" property. It seems somehow flex cache is actually not
asking for each included page if there already were stored a version for
those two parameters, but instead it caches the including jsp even though we
haven't told OpenCms to do so. That causes the problem that if the request
parameters of the including jsp are the same twice, the second we get the
cached page (even when parameters 1 and 2 are different and should therefore
request a different page).

We would really appreciate some pointers in what we are doing wrong. Thank
you in advance. Greetings,

Nacho Fernandez.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20090619/9a15b0f8/attachment.htm>


More information about the opencms-dev mailing list