summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoelstein2013-11-01 15:08:54 (GMT)
committerCZÖVEK András2013-11-01 15:08:54 (GMT)
commit42de53e3fa93f8dcd06a1da98fe2cf8a4954e7ff (patch)
treee69310c7a40ad0f4fd3f4b78defd8bcefa798d49
parent89f859e9d555cbab02631d9501726437d74f39e4 (diff)
Issue #1399906 by joelstein: Incompatibility with Entity Cache7.x-4.x
-rw-r--r--corresponding_node_references.crud.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/corresponding_node_references.crud.inc b/corresponding_node_references.crud.inc
index 88d9da3..98069e0 100644
--- a/corresponding_node_references.crud.inc
+++ b/corresponding_node_references.crud.inc
@@ -251,4 +251,8 @@ function corresponding_node_references_delete($home_node, $home_field, $away_nod
function _corresponding_node_references_update(&$node) {
field_attach_presave('node', $node);
field_attach_update('node', $node);
+ // Flush Entity Cache record.
+ if (module_exists('entitycache')) {
+ cache_clear_all($node->nid, 'cache_entity_node');
+ }
}