summaryrefslogtreecommitdiff
path: root/modules/translation
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-08-25 09:25:49 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-08-25 09:25:49 +0000
commit801756e7e69cfc8a22d8c1c612a31391872c35bc (patch)
tree3d70f6ee8d720628bf87039193a4fac07a1e6613 /modules/translation
parent92914245608123f9e011d1e9d4cf8c057bc9e8a8 (diff)
downloadbrdo-801756e7e69cfc8a22d8c1c612a31391872c35bc.tar.gz
brdo-801756e7e69cfc8a22d8c1c612a31391872c35bc.tar.bz2
#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)
Diffstat (limited to 'modules/translation')
-rw-r--r--modules/translation/translation.module2
1 files changed, 2 insertions, 0 deletions
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);
}
}