summaryrefslogtreecommitdiff
path: root/modules/user/user.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/user/user.module')
-rw-r--r--modules/user/user.module11
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) {