constant 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 drupal/modules/block/block.test
Test DRUPAL_CACHE_PER_ROLE.
BlockTestCase::testBlockRehash in drupal/modules/block/block.test
Test _block_rehash().
block_test_block_info in drupal/modules/block/tests/block_test.module
Implements hook_block_info().
block_update_7004 in drupal/modules/block/block.install
Add new blocks to new regions, migrate custom variables to blocks.
book_block_info in drupal/modules/book/book.module
Implements hook_block_info().

... See full list

File

drupal/includes/common.inc, line 143
Common functions that many Drupal modules will need to reference.

Code

define('DRUPAL_CACHE_PER_ROLE', 0x1);