You are here

constant BLOCK_NO_CACHE in Block Cache Alter 6

Same name in this branch
  1. 6 patches/block_with_node_grants.module \BLOCK_NO_CACHE
  2. 6 patches/block_no_node_grants.module \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.
6 uses of BLOCK_NO_CACHE
blockcache_alter_form_alter in ./blockcache_alter.module
Implementation of hook_form_alter().
block_block in patches/block_with_node_grants.module
Implementation of hook_block().
block_block in patches/block_no_node_grants.module
Implementation of hook_block().
_blockcache_alter_get_cache_id in ./blockcache_alter.module
Get cid for a block.
_block_get_cache_id in patches/block_with_node_grants.module
Assemble the cache_id to use for a given block.

... See full list

File

patches/block_no_node_grants.module, line 38
Controls the boxes that are displayed around the main content.

Code

define('BLOCK_NO_CACHE', -1);