You are here

constant DRUPAL_CACHE_PER_USER in Drupal 7

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
Common functions that many Drupal modules will need to reference.

Code

define('DRUPAL_CACHE_PER_USER', 0x2);