Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 297564

Document that caches should be cleared after calling field_attach_update()

$
0
0

There have been a number of cases where contrib modules call field_attach_update() to update field values without saving an entity. This leads to stale caches unless the contrib module manually resets the cache.

The documentation for field_attach_update() should mention that caches need to be cleared.

See this issue in the Entity Cache queue for details:
#1966164: Consider implementing hook_field_attach_update() to clear cache when field values are updated

AttachmentSizeStatusTest resultOperations
d7-document-field-attach-update-cache.patch608 bytesIdlePASSED: [[SimpleTest]]: [MySQL] 40,082 pass(es).View details | Re-test

Viewing all articles
Browse latest Browse all 297564

Trending Articles