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

merge-requests/4583/head
Alex Pott 2024-07-27 09:43:50 +01:00
parent 81d8971a6b
commit 37d8ea5cb4
No known key found for this signature in database
GPG Key ID: BDA67E7EE836E5CE
1 changed files with 1 additions and 1 deletions

View File

@ -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,