Field Cache
This module enables administrators to configure cache settings, such as max-age, contexts, and tags, for individual field formatters. This helps improve performance by caching field content that varies based on certain conditions, without needing to write custom preprocessing code.
The module allows administrators to set cache controls on field formatters. max-age, contexts, and tags are all supported.
Features
The contents rendered in fields may vary depending on various conditions. This allows administrators to quickly and easily add cache variable to fields without having to preprocess.
Post-Installation
To configure the field's cache properties, edit the field formatter for it in "Manage Display"
Additional Requirements
Drupal's internal page cache modules may not respect the rules set on the formatter for anonymous users. Uninstall these modules and use an external cache engine, e.g. CloudFlare, Varnish, etc.