Bug 15743

Summary: php-apcu conflicts php-opcache - should it really?
Product: Mageia Reporter: Morgan Leijström <fri>
Component: RPM PackagesAssignee: Oden Eriksson <oe>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal    
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
URL: http://jessesnet.com/development-notes/2014/php-55-opcache-apcu/
Whiteboard:
Source RPM: php-apcu-4.0.7-1.mga5.src.rpm CVE:
Status comment:

Description Morgan Leijström 2015-04-21 15:03:03 CEST
I read in owncloud *) optimisation instructions it is recommended to use APCu plus zend opcache (our php-opcache package)

Also according to the URI i gave it seem to be intended to work.

But urpmi and drakrpm say i can only install php-opcache OR php-apcu

*) ( owncloud 8, but we are still on 7, - waiting eagerly; Bug 15267 )

Reproducible: 

Steps to Reproduce:
Comment 1 Morgan Leijström 2015-04-21 15:06:39 CEST
From https://community.centminmod.com/threads/experimenting-with-apcu-data-only-caching-with-php-5-5-zend-opcache.101/ :

"  With PHP 5.5 and using Zend OpCache, you only get PHP opcode caching and loose the user data caching features that other opcode cachers like APC Cache, Xcache had.
So someone forked the APC Cache project and stripped the opcode caching features out resulting in only user data caching features as the sole purpose. APCu is that forked project at https://github.com/krakjoe/apcu.   "
Comment 2 David Walser 2015-04-21 15:48:26 CEST
Until Bug 12995 is fixed, there's really no point in using Zend OpCache (php-opcache) for anything.

I haven't tried it in several months, but it's really mindblowing that upstream hasn't fixed it (assuming it's still not fixed), or at least that it still hadn't been when I last tried it.
David Walser 2015-04-21 15:48:56 CEST

Assignee: bugsquad => oe

Comment 3 Morgan Leijström 2015-04-21 16:58:40 CEST
Ah... i run owncloud server (at light load) with php-opcache and apache-mod_php installed on mga5.  Maybe i am lucky :)
What are the preferred caching mojos for php opcode and data on mga5 currently?
Comment 4 David Walser 2015-04-22 03:57:40 CEST
It's just php-apcu for now.  php-opcache will be nice if it ever works right.
Comment 5 Morgan Leijström 2015-04-22 08:44:46 CEST
APCu is only data cache.
So for opcode cache we should use... xcache?

ANYHOW: regardless of if opcache have bugs or not in itself, this bug is about the packages php-apcu and php-opcache should not conflict.
Samuel Verschelde 2015-06-06 02:24:45 CEST

Whiteboard: (none) => MGA5TOO

Comment 6 David Walser 2015-06-08 13:11:27 CEST
Fixed in php-5.6.9-1.mga5.

Status: NEW => RESOLVED
Resolution: (none) => FIXED
Whiteboard: MGA5TOO => (none)