constant DRUPAL_CACHE_CUSTOM

The block is handling its own caching in its hook_block_view().

This setting is useful when time based expiration is needed or a site uses a node access which invalidates standard block cache.

Related topics

2 uses of DRUPAL_CACHE_CUSTOM
ForumBlockBase::settings in drupal/core/modules/forum/lib/Drupal/forum/Plugin/Block/ForumBlockBase.php
Overrides \Drupal\block\BlockBase::settings().
_block_get_renderable_region in drupal/core/modules/block/block.module
Gets an array of blocks suitable for drupal_render().

File

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

Code

const DRUPAL_CACHE_CUSTOM = -2;