Improve check on APCu to avoid warnings when calling apcu_cache_info()

remotes/angel/1.11.x
Yannick Warnier 8 years ago
parent c523656803
commit 2165bebb99
  1. 7
      main/inc/global.inc.php

@ -194,8 +194,11 @@ if (!empty($_configuration['multiple_access_urls'])) {
// Check if APCu is available. If so, store the value in $_configuration
if (extension_loaded('apcu')) {
$_configuration['apc'] = true;
$_configuration['apc_prefix'] = $_configuration['main_database'].'_'.$_configuration['access_url'].'_';
$apcEnabled = ini_get('apc.enabled');
if (!empty($apcEnabled) && $apcEnabled != 'Off' && $apcEnabled != 'off') {
$_configuration['apc'] = true;
$_configuration['apc_prefix'] = $_configuration['main_database'].'_'.$_configuration['access_url'].'_';
}
}
$charset = 'UTF-8';

Loading…
Cancel
Save