--- tagadelic.module.orig 2008-05-30 17:40:42.000000000 -0400 +++ tagadelic.module 2008-05-30 18:33:10.000000000 -0400 @@ -64,9 +64,16 @@ * You will have a nice variable in $node available for processing tags! */ function tagadelic_nodeapi(&$node, $op, $teaser, $page) { - if ($op == 'load') { + switch ( $op ) { + case 'load': $node->tags = tagadelic_node_get_terms($node); - } + break; + + case 'presave': + // Delete tagadelic cache + $sql = "DELETE FROM cache WHERE cid LIKE 'tagadelic_cache_%';"; + db_query($sql); + } } /**