I'm trying to figure out the best way to limit access to a view based on a boolean field in the user profile. If the user checks the box for that field they will have access to the view, otherwise not.
I could use views_php for the access control of the view. Would that prevent the view from getting cached with views caching?
Or should I use a hook_form_alter() to check for the value each time the profile is saved and then add or remove from a special role?