You are here

constant BLOCK_NO_CACHE in Drupal 6

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.
10 uses of BLOCK_NO_CACHE
block_add_block_form_submit in modules/block/block.admin.inc
Save the new custom block.
block_block in modules/block/block.module
Implementation of hook_block().
locale_block in modules/locale/locale.module
Implementation of hook_block(). Displays a language switcher. Translation links may be provided by other modules.
menu_block in modules/menu/menu.module
Implementation of hook_block().
node_block in modules/node/node.module
Implementation of hook_block().

... See full list

File

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

Code

define('BLOCK_NO_CACHE', -1);