Project

General

Profile

Actions

Feature #64030

closed

Extended APCu detection in Install Tool

Added by Urs Braem over 9 years ago. Updated over 7 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
Install Tool
Target version:
Start date:
2014-12-23
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #63291: APC & CMS7Closed2014-11-24

Actions
Actions #1

Updated by Urs Braem over 9 years ago

PS I mean it doesn't store anything between requests, not between sessions

Actions #2

Updated by Mathias Schreiber over 9 years ago

  • Target version changed from next-patchlevel to 7.4 (Backend)
Actions #3

Updated by Jigal van Hemert over 9 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.

Actions #4

Updated by Alexander Opitz over 9 years ago

  • Subject changed from Extended APC detection in Install Tool to Extended APCu detection in Install Tool
Actions #5

Updated by Susanne Moog almost 9 years ago

  • Category changed from Install Tool to 1601
Actions #6

Updated by Mathias Schreiber over 8 years ago

  • Target version changed from 7 LTS to 8 LTS
Actions #7

Updated by Christian Kuhn over 7 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.

Actions #8

Updated by Christian Kuhn over 7 years ago

  • Status changed from Accepted to Rejected
Actions

Also available in: Atom PDF