diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-03-16 21:47:15 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-03-16 21:47:15 +0000 |
commit | 297bc73f81441b13a2b1cdd49f471f9b20aa5271 (patch) | |
tree | bb35e8ae5fb456e0437f83cb6de5422ba98cd943 /modules/node/node.module | |
parent | b2583b624cea1f42f5c3633a331648d85b0e14cc (diff) | |
download | brdo-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.module | 11 |
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."); } |