DRUPAL_CACHE_PER_ROLE
The block or element can change depending on the user's roles.
This is the default setting for blocks, used when the block does not specify anything.
Related topics
8 uses of DRUPAL_CACHE_PER_ROLE
- BlockCacheTestCase::testCachePerRole in modules/
block/ block.test - Test DRUPAL_CACHE_PER_ROLE.
- BlockTestCase::testBlockRehash in modules/
block/ block.test - Test _block_rehash().
- block_test_block_info in modules/
block/ tests/ block_test.module - Implements hook_block_info().
- block_update_7004 in modules/
block/ block.install - Add new blocks to new regions, migrate custom variables to blocks.
- book_block_info in modules/
book/ book.module - Implements hook_block_info().
File
-
includes/
common.inc, line 143
Code
define('DRUPAL_CACHE_PER_ROLE', 0x1);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.