summaryrefslogtreecommitdiff
path: root/modules/field
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2013-12-30 20:12:15 -0500
committerDavid Rothstein <drothstein@gmail.com>2013-12-30 20:12:15 -0500
commitccec3e93828e385bd5caef2bb949c7a7b49d74d5 (patch)
tree45a66add37474a9935c3baa2c4f93f72802cda6a /modules/field
parent9a0f28167858af0d9cb761345f36e99bc7b6c795 (diff)
downloadbrdo-ccec3e93828e385bd5caef2bb949c7a7b49d74d5.tar.gz
brdo-ccec3e93828e385bd5caef2bb949c7a7b49d74d5.tar.bz2
Issue #2051787 by milesw: Document that caches should be cleared after calling field_attach_update().
Diffstat (limited to 'modules/field')
-rw-r--r--modules/field/field.attach.inc6
1 files changed, 6 insertions, 0 deletions
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