Bug #61175
closed
Can't clear cache with XCache breaks frontend
Added by Philipp Müller about 10 years ago.
Updated about 6 years ago.
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);
- Target version deleted (
next-patchlevel)
- Complexity deleted (
no-brainer)
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.
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?
- Status changed from New to Needs Feedback
- Status changed from Needs Feedback to Accepted
- Assignee set to Alexander Opitz
- Target version set to next-patchlevel
- 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
- Status changed from Under Review to Accepted
Please test the patch and report back if it works for you.
- Status changed from Accepted to Under Review
@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?
Sorry, I was away some days. The patch works fine for me, thank you.
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
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF