When the individual deltas of a node that uses ICE are re-arranged or modified (for example, new images are added), the image style preset isn't getting flushed. As a result, when viewing the node, a stale version of the image is returned.

Currently, the only known workaround is to re-save the image preset to force it to flush all derivative images.

Comments

josefnpat’s picture

This patch fixes this issue!

This patch does the following;

  • Adds two constants;
    • IMCOEF_PROVIDER_TYPE - The ICE field provider type. (image)
    • IMCOEF_ENTITY_INCLUSION_LIST - The ICE entity inclusion list for entity update. This is treated as a csv (handled by an explode)
  • image_combination_effects_image_path_flush_field_style() - A more specific version of image_path_flush() for performance improvement.
  • A hook_entity_update() that will clean up the image when the entity is updated.
  • Simple spacing fix.
CatherineOmega’s picture

joefnpat, your patch works great for me. Thanks!

firfin’s picture

Issue summary: View changes
Status: Active » Needs review

Does this patch still apply? And if so, still working?
And if so, is it working for more people than CatherineOmega and josefnpat?