Just implemented virtual roles module for the first time. After some initial headache, it works well.
virtual_roles (henceforth: VR) uses contexts (oh no not again, find a new word please) to decide when to trigger some role-related action. VR ties contexts to role processing, lets you define custom logic for when that role is to be applied, etc. All very nice.
The key thing about virtual_roles is that it has cache baked in, and it's non-optional. Contexts are made up of two possible $ops, cache and process...you can turn off caching in the UI, but you still have to provide a cache case in the context, or things won't work as expected. Be safe: define a cache id in your virtual roles context.
No comments:
Post a Comment