When entity items are updated from the changes in #3002609: Automatically update all other instances when parent entity is published the entity caches should be cleared.

Steps:

  • Update media_reference_revisions_update_media_revision().
  • Get a list of all entities using the media item.
  • Clear the caches for those entities.

Comments

DamienMcKenna created an issue. See original summary.

damienmckenna’s picture

Issue summary: View changes
cruno’s picture

Status: Active » Needs review
StatusFileSize
new2.1 KB

Updated patch from https://www.drupal.org/project/media_reference_revisions/issues/3002610#... to include work for here since they are related and would conflict as separate patches.

Status: Needs review » Needs work
damienmckenna’s picture

Status: Needs work » Needs review
StatusFileSize
new1.21 KB

These changes split off onto their own.

damienmckenna’s picture

Lets change it to only work on revision ID instead of every revision.

  • DamienMcKenna committed 3e3730b on 8.x-1.x
    Issue #3002952 by DamienMcKenna, cruno: Clear entity caches when other...
damienmckenna’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.