neos / neos-development-collection

The unified repository containing the Neos core packages, used for Neos development.
https://www.neos.io/
GNU General Public License v3.0
264 stars 222 forks source link

Flush node cache on asset metadata change #2294

Open pduersteler opened 5 years ago

pduersteler commented 5 years ago

Description

Nodes that use an asset as property won't have their caches flushed if an asset's metadata is being updated.

(This may be related to #1434).

Steps to Reproduce

  1. Create a custom node type with a property of type Neos\Media\Domain\Model\ImageInterface that has a template which outputs the asset's description.
  2. Use said node type on a page, publish the page, and view it in the frontend.
  3. Update the description of the assigned image in the media library.

Expected behavior

The custom node type displays the updated description that has just been added through the media library.

Actual behavior

The custom node type still displays the old description.

Affected Versions

neos/flow 5.1.5 neos/media 4.1.8 neos/neos 4.1.8

dlubitz commented 5 years ago

Can confirm this. Seems to be related to the new feature: https://github.com/neos/neos-development-collection/pull/2097

Currently just the user workspace cache gets invalidated, but not the live workspace cache.