Problem/Motivation
If this field is used in a listing using cache tagging, the field does not update its count in that listing if the usage count changes (i.e. more usage is added), until cache is cleared. This is because the field does not add any cache dependencies.
Steps to reproduce
In an environment with caching enabled, view a usage listing using this field. Add usage for an entity in the listing, and refresh the listing in your browser. The usage count does not change.
Proposed resolution
Add cache dependencies to the render function.
Remaining tasks
Create a merge request from the patch.
User interface changes
None
API changes
None
Data model changes
None
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | entity_usage_views_field-3514663-3.patch | 2.21 KB | john.oltman |
Comments
Comment #2
john.oltman commentedComment #3
john.oltman commentedThis patch includes a 1 minute refresh, so that new usage is shown. The previous patch will only show changes to existing usage.