Issue #3142928 by ivnish, neclimdul, Wiktor7, mitrpaka, Chi, keha3912, smustgrave, andypost, catch: Status report wrongly warns of APCu memory limit when admin language is not English
parent
81d8971a6b
commit
37d8ea5cb4
|
@ -411,7 +411,7 @@ function system_requirements($phase) {
|
|||
$apcu_actual_size = ByteSizeMarkup::create($memory_info['seg_size']);
|
||||
$apcu_recommended_size = '32 MB';
|
||||
$requirements['php_apcu_enabled']['value'] = t('Enabled (@size)', ['@size' => $apcu_actual_size]);
|
||||
if (Bytes::toNumber($apcu_actual_size) < Bytes::toNumber($apcu_recommended_size)) {
|
||||
if ($memory_info['seg_size'] < Bytes::toNumber($apcu_recommended_size)) {
|
||||
$requirements['php_apcu_enabled']['severity'] = REQUIREMENT_WARNING;
|
||||
$requirements['php_apcu_enabled']['description'] = t('Depending on your configuration, Drupal can run with a @apcu_size APCu limit. However, a @apcu_default_size APCu limit (the default) or above is recommended, especially if your site uses additional custom or contributed modules.', [
|
||||
'@apcu_size' => $apcu_actual_size,
|
||||
|
|
Loading…
Reference in New Issue