diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-08-19 08:08:45 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-08-19 08:08:45 +0000 |
commit | 74292cd0625032180b2d178ae1c57e51462f121e (patch) | |
tree | 79ffaafcf1cd4c7b4a2dd2d33512228a0efb597c /modules/node | |
parent | e9c36f969752488ca33da745b15805c489932a30 (diff) | |
download | brdo-74292cd0625032180b2d178ae1c57e51462f121e.tar.gz brdo-74292cd0625032180b2d178ae1c57e51462f121e.tar.bz2 |
- Patch #80951 by killes, yched et al: block caching.
Diffstat (limited to 'modules/node')
-rw-r--r-- | modules/node/node.module | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index b7d2bcb76..51d52b12e 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -770,7 +770,7 @@ function node_save(&$node) { // Update the node access table for this node. node_access_acquire_grants($node); - // Clear the cache so an anonymous poster can see the node being added or updated. + // Clear the page and block caches. cache_clear_all(); } @@ -1915,6 +1915,8 @@ function node_admin_search() { function node_block($op = 'list', $delta = 0) { if ($op == 'list') { $blocks[0]['info'] = t('Syndicate'); + // Not worth caching. + $blocks[0]['cache'] = BLOCK_NO_CACHE; return $blocks; } else if ($op == 'view') { @@ -2502,7 +2504,7 @@ function node_delete($nid) { node_invoke($node, 'delete'); node_invoke_nodeapi($node, 'delete'); - // Clear the cache so an anonymous poster can see the node being deleted. + // Clear the page and block caches. cache_clear_all(); // Remove this node from the search index if needed. |