Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#3 | 2050253-clear-file-cache-when-saving.patch | 353 bytes | Dave Reid |
Comments
Comment #1
anrikun CreditAttribution: anrikun commentedThis is a feature request.
Also make sure that Entity Cache is not faulty here.
Comment #2
Dave ReidI 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().
Comment #3
Dave ReidHere 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().
Comment #4
acy76 CreditAttribution: acy76 commentedI can confirm the patch above fixed the issue in my case.
Comment #6
anrikun CreditAttribution: anrikun commentedCommitted, thanks!