Add support for cacheable fields, field item lists.

Created on 17 November 2017, almost 7 years ago
Updated 11 April 2024, 5 months ago

Problem/Motivation

It would be nice to have support for cacheable field items / item lists. These would mostly benefit for computed fields.

Proposed resolution

Allow field item lists to implement CacheableDependencyInterface, maybe event field items and channel them through the item list.
Detect whether a field provides cache metadata and apply it to view of the entity in field formatters.

Remaining tasks

See how this could affect the system and where else the cache should be extracted from the field list.

User interface changes

None

API changes

N/A

Data model changes

None

✨ Feature request
Status

Closed: duplicate

Version

11.0 πŸ”₯

Component
FieldΒ  β†’

Last updated 1 day ago

Created by

πŸ‡·πŸ‡΄Romania _Archy_

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024