- Bugfix: deleting a node should flush the cache.
parent
b2583b624c
commit
297bc73f81
|
@ -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.");
|
||||
}
|
||||
|
|
|
@ -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.");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue