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

5 uses of DRUPAL_CACHE_PER_ROLE
BlockCacheTest::testCachePerRole in drupal/core/modules/block/lib/Drupal/block/Tests/BlockCacheTest.php
Test DRUPAL_CACHE_PER_ROLE.
BlockTest::testBlockRehash in drupal/core/modules/block/lib/Drupal/block/Tests/BlockTest.php
Test _block_rehash().
block_test_block_info in drupal/core/modules/block/tests/block_test.module
Implements hook_block_info().
book_block_info in drupal/core/modules/book/book.module
Implements hook_block_info().
drupal_render_cid_parts in drupal/core/includes/common.inc
Returns cache ID parts for building a cache ID.

File

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

Code

const DRUPAL_CACHE_PER_ROLE = 0x1;