1. 1.12.x includes/common.inc BACKDROP_NO_CACHE
  2. 1.10.x includes/common.inc BACKDROP_NO_CACHE
  3. 1.11.x includes/common.inc BACKDROP_NO_CACHE
  4. 1.7.x includes/common.inc BACKDROP_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

File

includes/common.inc, line 131
Common functions that many Backdrop modules will need to reference.

Code

define('BACKDROP_NO_CACHE', -1)