function prod_check_apc_opc in Production check & Production monitor 7
Same name and namespace in other branches
- 6 includes/prod_check.admin.inc \prod_check_apc_opc()
Integration of the APC status page.
1 string reference to 'prod_check_apc_opc'
- prod_check_menu in ./
prod_check.module - Implementation of hook_menu()
File
- includes/
prod_check.admin.inc, line 1036
Code
function prod_check_apc_opc() {
// FIRST check OPCache. APCu in the newest PHP versions uses the same
// functions as APC so instead of adding PHP version checks, we do it this
// way.
if (function_exists('opcache_get_status')) {
include drupal_get_path('module', 'prod_check') . '/includes/prod_check.opcache.inc';
exit;
}
elseif (function_exists('apc_cache_info')) {
define('ADMIN_USERNAME', variable_get('prod_check_apcuser', 'apc'));
define('ADMIN_PASSWORD', variable_get('prod_check_apcpass', 'password'));
include drupal_get_path('module', 'prod_check') . '/includes/prod_check.apc.inc';
exit;
}
else {
return t('APC nor OPcache is installed on this webserver!');
}
}