Skip navigation
Help

DRUPAL_NO_CACHE

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

The block should not get cached. This setting should be used:

  • for simple blocks (notably those that do not perform any db query),

where querying the db cache would be more expensive than directly generating the content.

  • for blocks that change too frequently.

File

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

Code

define('DRUPAL_NO_CACHE', -1)