When the Entity Cache module is enabled, ImageField Focus coordinates are not stored in nodes.
Coordinates may be set, but will be cleared on node save.

If Entity Cache module is disabled, focus coordinates will be saved after entry.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

anrikun’s picture

Title: ImageField Focus Coordinates Not Saved If Entity Cache Enabled » Add support for Entity Cache
Version: 7.x-1.0 » 7.x-1.x-dev
Category: bug » feature

This is a feature request.
Also make sure that Entity Cache is not faulty here.

Dave Reid’s picture

I don't see any code that uses hook_entity/file/node_load() so that this information could be cached, it seems this module is at fault if it needs to store data in it's table, it needs to make sure it's loaded on the object as well. I'm guessing that this should implement hook_file_load().

Dave Reid’s picture

Category: Feature request » Bug report
Issue summary: View changes
Status: Active » Needs review
FileSize
353 bytes

Here is what is needed to make this compatible with Entity cache. We need to make sure to clear the file entity cache whenever we save focus data, since this isn't using file_save().

acy76’s picture

Status: Needs review » Reviewed & tested by the community

I can confirm the patch above fixed the issue in my case.

  • anrikun committed e43d86c on 7.x-1.x authored by Dave Reid
    Issue #2050253 by Dave Reid: Add support for Entity Cache
    
anrikun’s picture

Status: Reviewed & tested by the community » Fixed

Committed, thanks!

Status: Fixed » Closed (fixed)

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