You are here

function performance_enabled_zend in Performance Logging and Monitoring 6

Same name and namespace in other branches
  1. 7 performance.module \performance_enabled_zend()

Helper function to check if Memcache is available.

Parameters

$form whether or not we're called from the settings form:

$message whether or not to display an additional message:

Return value

boolean

See also

performance_data_stores()

File

./performance.module, line 712
Logs detailed and/or summary page generation time and memory consumption for page requests. Copyright Khalid Baheyeldin 2008 of http://2bits.com

Code

function performance_enabled_zend($form = FALSE, $message = FALSE) {
  $setting = variable_get('performance_summary_zend', 0);
  if ($form) {
    $setting = TRUE;
  }
  if (function_exists('zend_shm_cache_store') && $setting) {
    return TRUE;
  }
  return FALSE;
}