Home ›
Block cache constants and other block-making tipsBlock cache constants and other block-making tips
Submitted by Benjamin Melançon on August 8, 2011 - 9:40am
./modules/block/block.api.php:48: * - DRUPAL_CACHE_PER_ROLE (default): The block can change depending on the
./modules/block/block.api.php:50: * - DRUPAL_CACHE_PER_USER: The block can change depending on the user
./modules/block/block.api.php:53: * DRUPAL_CACHE_PER_ROLE is not sufficient.
./modules/block/block.api.php:54: * - DRUPAL_CACHE_PER_PAGE: The block can change depending on the page
./modules/block/block.api.php:56: * - DRUPAL_CACHE_GLOBAL: The block is the same for every user on every
Note:
drush cc all does not trigger hook_block_info_alter().
More like this
- Making a block example done live at WesternMassDrupalCamp 2011
- Make modifications to a sidebar block menu that primarily mirrors top-level drop-down menu
- Drupal Performance Tip: Block Visibility | Lullabot
- Capturing Menu Block configuration in code with hook_menu_block_blocks()
- Theming tips for module developers session by John Albin Walker at DCSF2010


Comments
Post new comment