Page MenuHomePhabricator

Add support for Zend OPcache as a MediaWiki Caching option
Closed, InvalidPublic

Description

Author: fredbaud

Description:
Please see the short discussion at https://www.mediawiki.org/w/index.php?title=Project:Support_desk&offset=20131104170209#Zend_OPcache_v7.0.3-dev_35188

If it is necessary in the sense that something must be changed in the mediawiki software to utilize this php accelerator if present, and it would improve performance, please include support for the Zend_OPcache_v7.0.3-dev I have no idea what is involved other than that gained from reading the Wikipedia article https://en.wikipedia.org/wiki/List_of_PHP_accelerators


Version: unspecified
Severity: enhancement

Details

Reference
bz56652

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:43 AM
bzimport set Reference to bz56652.
bzimport added a subscriber: Unknown Object (MLST).

(In reply to comment #0)

Please see the short discussion at
https://www.mediawiki.org/w/index.php?title=Project:
Support_desk&offset=20131104170209#Zend_OPcache_v7.0.3-dev_35188

Could you please summarize it here, and come up with one sentence that describes what this bug report is about, and put that sentence into the "Summary" field?

fredbaud wrote:

(In reply to comment #1)

(In reply to comment #0)

Please see the short discussion at
https://www.mediawiki.org/w/index.php?title=Project:
Support_desk&offset=20131104170209#Zend_OPcache_v7.0.3-dev_35188

Could you please summarize it here, and come up with one sentence that
describes what this bug report is about, and put that sentence into the
"Summary" field?

I'm not sure what the summary field is or how to put anything in it, but when installing Mediawiki the installer searches for an extension to php that would do data caching and looks for APC Xcache Wincach. Does Zend_OPcache_v7.0.3-dev add anything to Mediawiki functionality and is support for it needed? Or does it function without anything being added to Mediawiki software? It was added to the latest version of PHP in March, 2013.

I guess the summary would be Support for Zend_OPcache_v7.0.3-dev

So does Zend OPcache support data caching?

fredbaud wrote:

Not according to the wikipedia article, however it does "opcaching" Is Mediawiki configured to use what it does do?

Refering to the Support Desk thread where you asked "Would this Zend OPcache v7.0.3-dev do the same thing?", you answered this yourself by "No" in comment 4.

So I don't know what you request in this bug report is and what you would like to achieve.

Also see https://www.mediawiki.org/wiki/Manual:MediaWiki_architecture#Caching and https://meta.wikimedia.org/wiki/Talk:PHP_caching_and_optimization for general information.

fredbaud wrote:

I am not a reliable source with respect to a question that I don't know the answer to. There is no use in rephrasing the support request repeatedly, but here goes: is Zend_OPcache_v7.0.3-dev supported by Mediawiki; what does it de; should it be supported?

Closing as INVALID, a bugtracker is not the place to discuss this.
Please refer to the support desk or the mediawiki-l mailing list at https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

changing summary since the current one is unenlightening.

From looking at http://halfelf.org/2013/trading-apc-for-zend/ and then http://wordpress.org/support/topic/looking-ahead-to-php-55-zend-optimizer-the-end-of-apc it looks like we should support this. Note that the last link starts off with some misinformation about APC. APC is still supported in PHP 5.5.

http://www.ricardclau.com/2013/03/apc-vs-zend-optimizer-benchmarks-with-symfony2/

Given that Zend OPcache is in core PHP, this is definitely worth a look.

Raising priority. Apparently it's becoming more popular

If it's just an opcode cache (ie can't be used to store objects etc), does MW actually need to do anything to support it? Noting APC can be used by MW as an opcode cache, but also an object cache...

As pointed out on IRC, Zend Opcache is just an opcache and not an object cache. It doesn't provide functions to store or retrieve objects from it, so there's nothing to do in MediaWiki to support that.

http://php.net/manual/en/ref.opcache.php