This module provides a cache context that varies caching based on the value of a reference field on the current user. This allows content to be cached differently depending on the user's specific reference field data.
This module implements a new cache context, based on the value of a reference field on the current user. To use this new cache context in your own module, after installing this module add a cache content like user.ref_field:field_foo where field_foo is the machine name of the reference field (e.g. taxonomy reference) whose value on the current user should alter what is being cached.
This module won't really do much for your website on its own, but can be useful in your own custom module, or in another contrib module that requires it.
Ask your assistant about User Reference Field Cache Context
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
2 tracked projects depend on this one