From b4786ff0eeed2bc50d665e71bd18ecd5260304c1 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 31 Aug 2009 17:06:10 +0000 Subject: - Patch #495968 by Frando, moshe weitzman: added drupal_render() cache pattern. Start using it for blocks. --- modules/system/system.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/system') 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; } -- cgit v1.2.3