- Bugfix: deleting a node should flush the cache.

4.2.x
Dries Buytaert 2003-03-16 21:47:15 +00:00
parent b2583b624c
commit 297bc73f81
2 changed files with 18 additions and 4 deletions

View File

@ -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.");
}

View File

@ -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.");
}