BLOCK_NO_CACHE

  1. drupal
    1. 6 modules/block/block.module

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

D7 --> DRUPAL_NO_CACHE

On D7 this seems to have been renamed to DRUPAL_NO_CACHE

Login or register to post comments