Personas and caching


(Steve P) #1

Hi Squiz gurus,

We are using server side persona evaluation on some standard pages within our sites. We are evaluating some metadata values of a logged in user to determine if a persona is TRUE or not.

We are also using a Redis cache in front of the same pages.

Would the redis cache effectively make server-side persona evaluation redundant?

ie because the page is not recalculated at the application, persona logic is also not calculated. Is there an internal mechanism in Squiz the prevents the caching of personalised pages?

Or do we need to use client side evaluation if we’re also using a cache?

Thanks,
Steve


(Bart Banda) #2

Hey Steve,
This will depend on if the pages are server-side (matix) cached per user, per permission set, or per group or not at all.
If your users are logging in to matrix (assume it’s like an intranet or something?), then the pages would most likely at least be cached per group (common practice), in which case, the persona logic would indeed not evaluate for each user visiting the page.
There is a setting on the details screen of the persona called “Force No Cache” that you could try and toggle which would effectively prevent the page from being cached that is using the persona. But note that this could have negative performance impacts on your page if you have many many users visiting it.


(Steve P) #3

Thank you for your response Bart. That confirms my suspicions - yes pages are cached per user group, and majority of our users are in the same user group (SAML based).

We will switch to a browser/client based persona logic so that we can continue to cache all pages.

Appreciate the help,

Steve