function performance_enabled_apc in Performance Logging and Monitoring 6
Same name and namespace in other branches
- 7 performance.module \performance_enabled_apc()
Helper function to check if APC 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
File
- ./
performance.module, line 484 - 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_apc($form = FALSE, $message = FALSE) {
$setting = variable_get('performance_summary_apc', 0);
if ($form) {
$setting = TRUE;
}
if (function_exists('apc_cache_info') && !function_exists('zend_shm_cache_store') && $setting) {
return TRUE;
}
return FALSE;
}