Project

General

Profile

Actions

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.

Status:
Closed
Priority:
Must have
Category:
Caching
Target version:
Start date:
2014-08-25
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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);

Actions #1

Updated by Markus Klein about 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

Actions #2

Updated by Markus Klein about 10 years ago

  • Target version deleted (next-patchlevel)
  • Complexity deleted (no-brainer)
Actions #3

Updated by Philipp Müller about 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.

Actions #4

Updated by Markus Klein about 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?

Actions #5

Updated by Philipp Gampe about 10 years ago

  • Status changed from New to Needs Feedback
Actions #6

Updated by Alexander Opitz about 10 years ago

  • Status changed from Needs Feedback to Accepted
  • Assignee set to Alexander Opitz
  • Target version set to next-patchlevel
Actions #7

Updated by Gerrit Code Review about 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

Actions #8

Updated by Alexander Opitz about 10 years ago

  • Status changed from Under Review to Accepted

Please test the patch and report back if it works for you.

Actions #9

Updated by Alexander Opitz about 10 years ago

  • Status changed from Accepted to Under Review
Actions #10

Updated by Markus Klein about 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?

Actions #11

Updated by Philipp Müller about 10 years ago

Sorry, I was away some days. The patch works fine for me, thank you.

Actions #12

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

Actions #13

Updated by Alexander Opitz about 10 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #14

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF