Problem/Motivation
When resolving a text item (e.g. CKEditor WYSIWYG field), and that text item has an entity embed (e.g. media), updating that media item does not invalidate the cache for the GraphQL Compose response.
Steps to reproduce
1. Have a text field with CKEditor which can embed media
2. Embed an image media item
3. Fetch the GraphQL results for node including processed value for the text field
4. Swap the image on the media entity
5. The resulting processed HTML does not show the new image URL path
Proposed resolution
Add cache dependency on the processed value from the text item.
I've added a patch to support the embedded cache tags, but I'm having an issue forking graphql_compose to create an MR. I'll create an MR once I can.
| Comment | File | Size | Author |
|---|---|---|---|
| handle-ckeditor-embed-cache-tags.patch | 1.58 KB | cruno |
Issue fork graphql_compose-3580301
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
almunningsMakes sense to me! Will clean up some of the tests for 2.x and merge this in, and port this to 3.x