BLOCK_NO_CACHE

Definition

modules/block/block.module

Description

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.

Code

<?php
define('BLOCK_NO_CACHE', -1);
?>
 
 

Drupal is a registered trademark of Dries Buytaert.