DRUPAL_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.
 
Related topics
15 uses of DRUPAL_NO_CACHE
- BlockCacheTestCase::testNoCache in modules/
block/ block.test  - Test DRUPAL_NO_CACHE.
 - BlockTestCase::testBlockRehash in modules/
block/ block.test  - Test _block_rehash().
 - block_add_block_form_submit in modules/
block/ block.admin.inc  - Form submission handler for block_add_block_form().
 - block_block_info in modules/
block/ block.module  - Implements hook_block_info().
 - block_update_7004 in modules/
block/ block.install  - Add new blocks to new regions, migrate custom variables to blocks.
 
File
- 
              includes/
common.inc, line 127  
Code
define('DRUPAL_NO_CACHE', -1);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.