Early Bird Registration for DrupalCon Atlanta is now open! By registering during our Early Bird Registration window, you’ll save $100. This window ends on 19 January 2025 and will go by quickly, so don’t wait!
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | 3128531-2.patch | 598 bytes | idebr |
Comments
Comment #2
idebr CreditAttribution: idebr at iO commentedAttached patch adds a cache dependency on the
cookie_content_blocker_media.settings
in 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 CreditAttribution: steven buteneers commentedReviewed & tested. It works!
Thanks for the contribution ;)