Skip navigation
Help

DRUPAL_CACHE_CUSTOM

  1. drupal
    1. 7 drupal/includes/common.inc

The block is handling its own caching in its hook_block_view(). From the perspective of the block cache system, this is equivalent to DRUPAL_NO_CACHE. Useful when time based expiration is needed or a site uses a node access which invalidates standard block cache.

File

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

Code

define('DRUPAL_CACHE_CUSTOM', -2)