Feature #64030
closedExtended APCu detection in Install Tool
0%
Description
I'd like to suggest adding extended APC detection in
typo3/sysext/install/Classes/Configuration/ExtbaseObjectCache/ApcPreset.php
The reason: If like me, you've enabled APCu via PHP 5.5 but are running suPHP, you will be disappointed by the green "APC detected" message in the install tool.
APC is there, but it doesn't store anything between sessions, as suPHP doesn't allow that.
So there's a basic multi-request test for APC that would be more useful here:
$var = apc_fetch('testvar'); if ($var===false) $var=0; echo $var; apc_store('testvar', ++$var);
Run this twice, if the counter goes up, it's fine. If not: "APC is detected, but it's not working as supposed"
cf. http://stackoverflow.com/questions/27625563/apcu-and-suphp-possible
Updated by Urs Braem almost 10 years ago
PS I mean it doesn't store anything between requests, not between sessions
Updated by Mathias Schreiber almost 10 years ago
- Target version changed from next-patchlevel to 7.4 (Backend)
Updated by Jigal van Hemert almost 10 years ago
- Status changed from New to Accepted
- Target version changed from 7.4 (Backend) to 7 LTS
If preset.isAvailable is true an AJAX based extra check should be done to verify that the values survive between requests. \TYPO3\CMS\Install\Configuration\ExtbaseObjectCache\ApcPreset::isAvailable() can store a value and the AJAX request can check if it is stored.
Updated by Alexander Opitz almost 10 years ago
- Subject changed from Extended APC detection in Install Tool to Extended APCu detection in Install Tool
Updated by Susanne Moog over 9 years ago
- Category changed from Install Tool to 1601
Updated by Mathias Schreiber about 9 years ago
- Target version changed from 7 LTS to 8 LTS
Updated by Christian Kuhn almost 8 years ago
APC usually isn't used anymore since php 7, so v8 and above are not affected, the preset does not exist in v8 anymore. The issue is imho not severe enough to fix in v7, so I'll close the issue for now. If you think we should still change something in v7, please feel free to submit a patch to review.typo3.org.
Updated by Christian Kuhn almost 8 years ago
- Status changed from Accepted to Rejected