diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-08-31 17:06:10 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-08-31 17:06:10 +0000 |
commit | b4786ff0eeed2bc50d665e71bd18ecd5260304c1 (patch) | |
tree | fbf68db46c5eea78f16263bf639638571093fad3 /modules/system/system.module | |
parent | 730adaf7178fbf683e5f51a0d3d192edd1c423e5 (diff) | |
download | brdo-b4786ff0eeed2bc50d665e71bd18ecd5260304c1.tar.gz brdo-b4786ff0eeed2bc50d665e71bd18ecd5260304c1.tar.bz2 |
- Patch #495968 by Frando, moshe weitzman: added drupal_render() cache pattern. Start using it for blocks.
Diffstat (limited to 'modules/system/system.module')
-rw-r--r-- | modules/system/system.module | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/system/system.module b/modules/system/system.module index bd72b1fd8..c7ca46cc3 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -1576,12 +1576,12 @@ function system_block_info() { $blocks['main'] = array( 'info' => t('Main page content'), // Cached elsewhere. - 'cache' => BLOCK_NO_CACHE, + 'cache' => DRUPAL_NO_CACHE, ); $blocks['powered-by'] = array( 'info' => t('Powered by Drupal'), 'weight' => '10', - 'cache' => BLOCK_NO_CACHE, + 'cache' => DRUPAL_NO_CACHE, ); $blocks['help'] = array( 'info' => t('System help'), @@ -1592,7 +1592,7 @@ function system_block_info() { $blocks[$menu_name]['info'] = t($title); // Menu blocks can't be cached because each menu item can have // a custom access callback. menu.inc manages its own caching. - $blocks[$menu_name]['cache'] = BLOCK_NO_CACHE; + $blocks[$menu_name]['cache'] = DRUPAL_NO_CACHE; } return $blocks; } |