diff --git a/typo3/sysext/install/Classes/Configuration/ExtbaseObjectCache/ApcPreset.php b/typo3/sysext/install/Classes/Configuration/ExtbaseObjectCache/ApcPreset.php index 018120fbb9a3e82ddc0c352903664d84545353ee..f1385082ae3ca3d06cd9fa8b581489fb26fdf0e0 100644 --- a/typo3/sysext/install/Classes/Configuration/ExtbaseObjectCache/ApcPreset.php +++ b/typo3/sysext/install/Classes/Configuration/ExtbaseObjectCache/ApcPreset.php @@ -46,8 +46,7 @@ class ApcPreset extends Configuration\AbstractPreset ); /** - * APC preset is available if extension is loaded, if APC has ~100MB - * memory and if ~5MB are free. + * APC preset is available if extension is loaded and at least ~5MB are free. * * @return bool TRUE */ @@ -56,12 +55,10 @@ class ApcPreset extends Configuration\AbstractPreset $result = false; if (extension_loaded('apc')) { $memoryInfo = @apc_sma_info(); - $totalMemory = $memoryInfo['num_seg'] * $memoryInfo['seg_size']; $availableMemory = $memoryInfo['avail_mem']; - // If more than 99MB in total and more than 5MB free - if ($totalMemory > (99 * 1024 * 1024) - && $availableMemory > (5 * 1024 * 1024)) { + // If more than 5MB free + if ($availableMemory > (5 * 1024 * 1024)) { $result = true; } } diff --git a/typo3/sysext/install/Resources/Private/Partials/Action/Tool/Configuration/ExtbaseObjectCache/Apc.html b/typo3/sysext/install/Resources/Private/Partials/Action/Tool/Configuration/ExtbaseObjectCache/Apc.html index d2ec47f4ee89365e0a6d7d9ca9ce17dddb1bfc78..bd1079e01a706314fb8187a831d646cee10cd167 100644 --- a/typo3/sysext/install/Resources/Private/Partials/Action/Tool/Configuration/ExtbaseObjectCache/Apc.html +++ b/typo3/sysext/install/Resources/Private/Partials/Action/Tool/Configuration/ExtbaseObjectCache/Apc.html @@ -28,9 +28,8 @@ speeds up lots of TYPO3 CMS requests. Use if available. </f:then> <f:else> - APC is not loaded or not enough memory is left. APC should - be configured to have at least 100MB of shared memory with - 5MB free memory. + APCu is not loaded or not enough memory is left. APCu should + have at least 5MB free memory. </f:else> </f:if> </div>