summaryrefslogtreecommitdiff
path: root/modules/node/node.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-03-16 21:47:15 +0000
committerDries Buytaert <dries@buytaert.net>2003-03-16 21:47:15 +0000
commit297bc73f81441b13a2b1cdd49f471f9b20aa5271 (patch)
treebb35e8ae5fb456e0437f83cb6de5422ba98cd943 /modules/node/node.module
parentb2583b624cea1f42f5c3633a331648d85b0e14cc (diff)
downloadbrdo-297bc73f81441b13a2b1cdd49f471f9b20aa5271.tar.gz
brdo-297bc73f81441b13a2b1cdd49f471f9b20aa5271.tar.bz2
- Bugfix: deleting a node should flush the cache.
Diffstat (limited to 'modules/node/node.module')
-rw-r--r--modules/node/node.module11
1 files changed, 9 insertions, 2 deletions
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.");
}