constant BLOCK_NO_CACHE

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

... See full list

File

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

Code

define('BLOCK_NO_CACHE', -1)