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/user/user.module | |
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/user/user.module')
-rw-r--r-- | modules/user/user.module | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/user/user.module b/modules/user/user.module index fdce324ab..9f2686722 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -627,10 +627,19 @@ function user_block($op = 'list', $delta = 0, $edit = array()) { if ($op == 'list') { $blocks[0]['info'] = t('User login'); + // Not worth caching. + $blocks[0]['cache'] = BLOCK_NO_CACHE; + $blocks[1]['info'] = t('Navigation'); + // Menu blocks can't be cached because each menu item can have + // a custom access callback. menu.inc manages its own caching. + $blocks[1]['cache'] = BLOCK_NO_CACHE; + $blocks[2]['info'] = t('Who\'s new'); - $blocks[3]['info'] = t('Who\'s online'); + // Too dynamic to cache. + $blocks[3]['info'] = t('Who\'s online'); + $blocks[3]['cache'] = BLOCK_NO_CACHE; return $blocks; } else if ($op == 'configure' && $delta == 2) { |