You are here

function mongodb_cache_exit in MongoDB 7

Implements hook_exit().

File

mongodb_cache/mongodb_cache_module.php, line 18
The MongoDB cache module.

Code

function mongodb_cache_exit() {
  if (Cache::hasException()) {
    drupal_add_http_header('Status', '503 Service Unavailable');
  }
}