constant BLOCK_NO_CACHE

You are here

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

modules/block/block.module, line 38
Controls the boxes that are displayed around the main content.

Code

define('BLOCK_NO_CACHE', -1)

Comments

On D7 this seems to have been renamed to DRUPAL_NO_CACHE