From 297bc73f81441b13a2b1cdd49f471f9b20aa5271 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 16 Mar 2003 21:47:15 +0000 Subject: - Bugfix: deleting a node should flush the cache. --- modules/node/node.module | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'modules/node/node.module') diff --git a/modules/node/node.module b/modules/node/node.module index a4eae222c..f17436db9 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -311,8 +311,8 @@ function node_save($node) { } /* - ** Clear the cache so an anonymous poster can see the node being added - ** or updated. + ** Clear the cache so an anonymous poster can see the node being + ** added or updated. */ cache_clear_all(); @@ -1351,6 +1351,13 @@ function node_delete($edit) { node_invoke($node, "delete"); node_invoke_all($node, "nodeapi", "delete"); + /* + ** Clear the cache so an anonymous poster can see the node being + ** deleted. + */ + + cache_clear_all(); + watchdog("special", "$node->type: deleted '$node->title'"); $output = t("The node has been deleted."); } -- cgit v1.2.3