constant DRUPAL_CACHE_PER_USER

The block or element can change depending on the user.

This setting can be resource-consuming for sites with large number of users, and thus should only be used when DRUPAL_CACHE_PER_ROLE is not sufficient.

Related topics

2 uses of DRUPAL_CACHE_PER_USER
BlockCacheTest::testCachePerUser in drupal/core/modules/block/lib/Drupal/block/Tests/BlockCacheTest.php
Test DRUPAL_CACHE_PER_USER.
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 191
Common functions that many Drupal modules will need to reference.

Code

const DRUPAL_CACHE_PER_USER = 0x2;