Updating RIFT View Modes doesn't update image styles until cache is cleared

Created on 20 December 2024, about 1 month ago

Problem/Motivation

Lets say RIFT view mode called "Hero" is used in some formatters. Then after updating the RIFT view mode for "Hero", one needs to clear Drupal cache for updating existing nodes that uses the formatter.

Steps to reproduce

- Install Umami Demo
- Configure RIFT View modes to be used for Media Fields
- With caching turned on, visit Homepage
- Now go to RIFT Settings and update view modes
- Visit the Homepage and notice images are still being served from cache, hence updated RIFT view modes doesn't seems to be applicable.
- Clear cache and visit the homepage.
- The new configurations are applied.

Proposed resolution

- Add proper cache metadata when rendering RIFT View modes

Remaining tasks

- N/A

User interface changes

- N/A

API changes

- N/A

Data model changes

- N/A

🐛 Bug report
Status

Active

Version

1.3

Component

Code

Created by

🇩🇪Germany D34dMan Hamburg

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024