- 🇺🇸United States smustgrave
This will need tests to show the test.
Also was previously tagged for IS update.
Did not test the issue.
- last update
over 1 year ago 29,661 pass, 48 fail - @neclimdul opened merge request.
- First commit to issue fork.
- Status changed to Needs review
about 1 year ago 10:27pm 19 December 2023 - 🇸🇪Sweden alayham
To see this issue on a multilingual site, the string
@size MB
must be localized.My solution fixes the issue while respecting the user language, however, I think the best solution is to make the byte comparison work correctly when comparing two byte representations in two different languages, or to just compare the byte size as numbers, not as strings.
- Status changed to Needs work
about 1 year ago 10:36pm 19 December 2023 - 🇺🇸United States neclimdul Houston, TX
@alayham Yeah, the suggestion all along has been to avoid any localization and compare number/byte sizes directly.
https://git.drupalcode.org/project/drupal/-/merge_requests/670/diffs#not...
This was only in needs work because it doesn't have tests which is still true.
- ivnish Kazakhstan
I have same problem as #7
$apcu_actual_size = ByteSizeMarkup::create($memory_info['seg_size'], 'en');
doesn't helpif ($memory_info['seg_size'] < Bytes::toNumber($apcu_recommended_size))
doesn't help too hi.
this patch work for me in drupal 10.2.7:
status-report-apcu-3142928.patchgo to /core/modules/system/
then edit system.install
in line 427 remove
$apcu_actual_size = ByteSizeMarkup::create($memory_info['seg_size']);
replace with
$apcu_actual_size = ByteSizeMarkup::create($memory_info['seg_size'], 'en');- Status changed to Needs review
8 months ago 8:06am 9 June 2024 - 🇬🇧United Kingdom catch
Per #5 this isn't going to be testable in a useful way - we can't fake the apcu memory limit for system_requirements(). Also think this is a good example where the new policy on https://www.drupal.org/about/core/policies/core-change-policies/core-gat... → should apply.
- Status changed to Needs work
8 months ago 5:37pm 9 June 2024 - 🇺🇸United States smustgrave
Can the issue summary be updated with least proposed solution and before/after screenshots.
Also the 1 MR still visible is for 9.1.x and still a number of patches so not sure which is to be reviewed.
- Merge request !8754Resolve #3142928 "Status report wrongly warns of APCu memory limit when admin language is not English" → (Open) created by ivnish
- Status changed to Needs review
6 months ago 10:21am 13 July 2024 - Status changed to Needs work
6 months ago 1:20pm 17 July 2024 - 🇺🇸United States smustgrave
Can the issue summary be updated to include steps to reproduce the problem and ultimately what the proposed solution is.
- Status changed to Needs review
6 months ago 7:35am 18 July 2024 - Status changed to Needs work
6 months ago 4:39am 19 July 2024 - Status changed to Needs review
6 months ago 9:54am 22 July 2024 - ivnish Kazakhstan
btw that after screenshot is that the wrong item?
smustgrave, after screenshot doesn't have wrong warning about cache size
- 🇬🇧United Kingdom catch
Latest change in the MR looks good, but probably needs one more round of manual testing?
- Status changed to RTBC
6 months ago 8:27am 23 July 2024 - 🇬🇧United Kingdom alexpott 🇪🇺🌍
Committed and pushed 37d8ea5cb4 to 11.x and e1902fee88 to 11.0.x and eeca1aec09 to 10.4.x and 2664526bdb to 10.3.x. Thanks!
- Status changed to Fixed
6 months ago 8:45am 27 July 2024 -
alexpott →
committed 2664526b on 10.3.x
Issue #3142928 by ivnish, neclimdul, Wiktor7, mitrpaka, Chi, keha3912,...
-
alexpott →
committed 2664526b on 10.3.x
-
alexpott →
committed eeca1aec on 10.4.x
Issue #3142928 by ivnish, neclimdul, Wiktor7, mitrpaka, Chi, keha3912,...
-
alexpott →
committed eeca1aec on 10.4.x
-
alexpott →
committed e1902fee on 11.0.x
Issue #3142928 by ivnish, neclimdul, Wiktor7, mitrpaka, Chi, keha3912,...
-
alexpott →
committed e1902fee on 11.0.x
-
alexpott →
committed 37d8ea5c on 11.x
Issue #3142928 by ivnish, neclimdul, Wiktor7, mitrpaka, Chi, keha3912,...
-
alexpott →
committed 37d8ea5c on 11.x
- 🇷🇺Russia nikit
Just for info:
https://github.com/krakjoe/apcu/blob/v5.1.23/apc_sma.c#L565info->seg_size = sma->size - (ALIGNWORD(sizeof(sma_header_t)) + ALIGNWORD(sizeof(block_t)) + ALIGNWORD(sizeof(block_t)));
seg_size = = 33554312b, not 33554432b (32M) - 120 bytes difference in my server.
so$apcu_recommended_size = '32 MB';
in system.install isn't exact value for comparing. - 🇺🇦Ukraine Taran2L Lviv
this requires a follow-up, as now there is a warning with comparing 32 Mb to 32 MB (and the reason is described by @Nikit )
PHP APCu caching
Enabled (32 MB)
Depending on your configuration, Drupal can run with a 32 MB APCu limit. However, a 32 MB APCu limit (the default) or above is recommended, especially if your site uses additional custom or contributed modules. - 🇬🇧United Kingdom catch
The follow-up is here: 🐛 APCu requirement for 32M is checking wrong value Needs review
Automatically closed - issue fixed for 2 weeks with no activity.