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
BlockCacheTestCase::testCachePerUser in drupal/modules/block/block.test
Test DRUPAL_CACHE_PER_USER.
drupal_render_cid_parts in drupal/includes/common.inc
Returns cache ID parts for building a cache ID.

File

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

Code

define('DRUPAL_CACHE_PER_USER', 0x2);