Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

User Reference Field Cache Context

Security covered Under active development 43 sites

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.

Drupal 8–11

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

Activity

Tracked releases
2
Tracked since
Apr 2024
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Slowing

Releases

Version Type Core PHP Release date
1.0.2 Stable 8–11 Dec 18, 2024
1.0.1 Stable 8–11 Apr 17, 2024