Problem/Motivation
When an administrator updates the 'Message for blocked YouTube media', this change is not immediately reflected on the page. Only after a cache rebuild, the change appears.
Proposed resolution
Implement a cache dependency on thecookie_content_blocker_media.settings in the cookie_content_blocker_oembed field formatter, so a change in the message invalidates the rendered media-item.
Remaining tasks
- Write a patch
- Review
- Commit
User interface changes
When an administrator updates the 'Message for blocked YouTube media', this change is immediately reflected on the page.
API changes
None.
Data model changes
None.
Comments
Comment #2
idebr commentedAttached patch adds a cache dependency on the
cookie_content_blocker_media.settingsin the cookie_content_blocker_oembed field formatter, so a change in the message invalidates the rendered media-item.Comment #3
dmsmidtThanks, looks legit. Need to test.
Comment #5
steven buteneers commentedReviewed & tested. It works!
Thanks for the contribution ;)