[opencms-dev] Cache problem with cms:include

Tobias Herrmann t.herrmann at alkacon.com
Fri Jul 5 09:06:07 CEST 2013


Hi Tobias,

you need to use the cache setting "cache=uri;user;no-params;" for includes with any user specific output. This part has not changed since version 7.5.x, I wonder why it worked before.

Greetings, Tobias

--

Alkacon Software GmbH - The OpenCms Experts

http://www.alkacon.com
http://www.opencms.org

Am 04.07.2013 18:55, schrieb Tobias Karrer:
> Hi all,
>
> we got a flex cache problem after updating vrom 7.5.4 to 8.0.4:
>
> Out page templates have the cache setting "cache=uri;no-params;".
> Since the name of the logged in user is printed out in the page, we included this part with a dynamic include "cms:include"; cache setting "cache=never".
>
> Works fine with 7.5.4 - the user part always was included dynamically, while the rest of the page was delivered from the flex cache.
> After updating to 8.0.4 everything is delivered from the flex cache - users may see a wrong username in the page. We needed to disable the flex cache.
>
> What's the solution?
> Do we need to change cache settings for OpenCms 8.0.4 (we are not using ADE)?
>
> Best,
> Tobias
> _______________________________________________
> 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/cgi-bin/mailman/listinfo/opencms-dev
>
>
>



More information about the opencms-dev mailing list