Bug #61175
closedCan't clear cache with XCache breaks frontend
100%
Description
Hi
System:- TYPO3 6.2.4
- PHP Version 5.3.10-1ubuntu3.13 with Suhosin Patch 0.9.10
- XCache v1.3.2 (with enable_auth off)
Problem
xcache_clear_cache() expects exactly 2 parameters, 1 given in /typo3/sysext/core/Classes/Utility/OpcodeCacheUtility.php line 116
Solution
Replace line 116 with this one:
xcache_clear_cache(XC_TYPE_PHP, 0);
Updated by Markus Klein over 10 years ago
According to the change log of xcache this has been changed with 3.0.0
http://xcache.lighttpd.net/browser/tags/3.0.1/ChangeLog
Please consider upgrading your xcache version
Updated by Markus Klein over 10 years ago
- Target version deleted (
next-patchlevel) - Complexity deleted (
no-brainer)
Updated by Philipp Müller over 10 years ago
Hi Markus
This is the stable version in Ubuntu 12.04. Maybe it can be fixed by TYPO3 anyway, to provide the compatibility to the stable packages of Ubuntu 12.04.
Ubuntu 12.04 LTS is a modern os and will be supported until 2017.
Thanks.
Updated by Markus Klein over 10 years ago
Is there a way to detect which version is running?
The problem is now that the second parameter is not only optional, but also has -1 as a default.
So we need two different calls:
= 3.0: xcache_clear_cache(XC_TYPE_PHP);
< 3.0: xcache_clear_cache(XC_TYPE_PHP, 0);
Is that correct?
Updated by Philipp Gampe over 10 years ago
- Status changed from New to Needs Feedback
Updated by Alexander Opitz over 10 years ago
- Status changed from Needs Feedback to Accepted
- Assignee set to Alexander Opitz
- Target version set to next-patchlevel
Updated by Gerrit Code Review over 10 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/32441
Updated by Alexander Opitz over 10 years ago
- Status changed from Under Review to Accepted
Please test the patch and report back if it works for you.
Updated by Alexander Opitz over 10 years ago
- Status changed from Accepted to Under Review
Updated by Markus Klein over 10 years ago
@Philipp Müller: You reported this bug for PHP 5.3. Would you be so kind to test the linked patch on your system, such that we know whether this works on 5.3?
Updated by Philipp Müller about 10 years ago
Sorry, I was away some days. The patch works fine for me, thank you.
Updated by Gerrit Code Review about 10 years ago
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/32636
Updated by Alexander Opitz about 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset aeb7333fd519eced5c0dbc1a9e953a83d42c6b88.