[opencms-dev] flex cache question about included jsps
a.westermann at alkacon.com
a.westermann at alkacon.com
Fri Jun 19 12:45:29 CEST 2009
Hi Nacho,
please check if the jsp is really returned from the cache in the
Administration View -> Cache Administration -> Flex Cache. Turn on the
variation light bulb. If you have set a wrong value this will be visible
here too (key column will show "parse-error"). I'd be interested if you
see the including jsp in the cache.
Kind Regards,
Achim.
-------------------
Achim Westermann
Alkacon Software GmbH - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org
Nacho Fernández Orellana wrote:
> 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.
>
>
> ------------------------------------------------------------------------
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
More information about the opencms-dev
mailing list