constant DRUPAL_NO_CACHE

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  1. cis7 includes/common.inc DRUPAL_NO_CACHE
  2. cle7 includes/common.inc DRUPAL_NO_CACHE
  3. elmsmedia7 includes/common.inc DRUPAL_NO_CACHE
  4. icor7 includes/common.inc DRUPAL_NO_CACHE
  5. meedjum_blog7 includes/common.inc DRUPAL_NO_CACHE
  6. mooc7 includes/common.inc 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.

File

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

Code

define('DRUPAL_NO_CACHE', -1)

Related topics

Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.