I'm sorry if this is covered somewhere...it seems like it would be but I'm unable to find it. I'm curious how authcache handles caching for users with multiple roles.

Currently I have a "paid membership" role, and several types of "staff" roles. All staff users also have the "paid membership" role, as this is the only role that is granted certain permissions on the site. It is the easier way to assign permissions IMHO. So, if a staff member visits a page, will the cached version be saved for every role they have? all the roles in conjunction? etc.

Also, users with "paid membership" role may also have some other side roles (I'll call "side role") which don't affect the content of the site for them. If I have authenticated page caching set for "paid membership" role but not checked for "side role", will users with both of these roles see cached content?

Comments

Jonah Ellison’s picture

Component: Miscellaneous » Documentation
Assigned: Unassigned » Jonah Ellison

Caching is based on cumulative roles... so if a user has staff+paid membership roles, then pages are saved to a cache separate than just the staff role. If caching is not enabled for "side role," then the user won't receive cached pages even if they belong to other roles.

Hope this answers your question. I'll add this info to the admin page for the next release.

vood002’s picture

Status: Active » Closed (fixed)

This answers it perfectly, thanks for the information