From ccec3e93828e385bd5caef2bb949c7a7b49d74d5 Mon Sep 17 00:00:00 2001 From: David Rothstein Date: Mon, 30 Dec 2013 20:12:15 -0500 Subject: Issue #2051787 by milesw: Document that caches should be cleared after calling field_attach_update(). --- modules/field/field.attach.inc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/field') diff --git a/modules/field/field.attach.inc b/modules/field/field.attach.inc index 30a12d003..4a90961de 100644 --- a/modules/field/field.attach.inc +++ b/modules/field/field.attach.inc @@ -976,6 +976,12 @@ function field_attach_insert($entity_type, $entity) { /** * Save field data for an existing entity. * + * When calling this function outside an entity save operation be sure to + * clear caches for the entity: + * @code + * entity_get_controller($entity_type)->resetCache(array($entity_id)) + * @endcode + * * @param $entity_type * The type of $entity; e.g. 'node' or 'user'. * @param $entity -- cgit v1.2.3