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

File

includes/common.inc, line 151

Code

define('DRUPAL_CACHE_PER_USER', 0x2);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.