summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/node.module11
-rw-r--r--modules/node/node.module11
2 files changed, 18 insertions, 4 deletions
diff --git a/modules/node.module b/modules/node.module
index a4eae222c..f17436db9 100644
--- a/modules/node.module
+++ b/modules/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.");
}
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.");
}