From 801756e7e69cfc8a22d8c1c612a31391872c35bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Sat, 25 Aug 2007 09:25:49 +0000 Subject: #111127 by chx: cache node_load(), so heavy operations loading data from external sources and only invoked once (note that you should do everything dynamic in the view op, not the load op) --- modules/translation/translation.module | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/translation/translation.module') diff --git a/modules/translation/translation.module b/modules/translation/translation.module index 68a30e971..e7d7b02de 100644 --- a/modules/translation/translation.module +++ b/modules/translation/translation.module @@ -296,6 +296,8 @@ function translation_remove_from_set($node) { db_query('UPDATE {node} SET tnid = %d WHERE tnid = %d', $new_tnid, $node->tnid); } } + // TODO: it'd be better to only delete the caches of the affected nodes. + cache_clear_all('*', 'cache_node', TRUE); } } -- cgit v1.2.3