Skip to content
This repository was archived by the owner on Jan 3, 2019. It is now read-only.

Activate PHP-Opcacheing #26

Closed
ghost opened this issue Sep 16, 2015 · 3 comments · Fixed by #27
Closed

Activate PHP-Opcacheing #26

ghost opened this issue Sep 16, 2015 · 3 comments · Fixed by #27

Comments

@ghost
Copy link

ghost commented Sep 16, 2015

Hello,

could you add opcache to the docker-php-ext-install line? PHP 5.6 comes with the zend opcache bundled, all you need to do is to add this line. I could also fork an make a pull request if you like.

Kind regards
Florian

@lazyfrosch
Copy link
Contributor

owncloud is recommending APCu, doesn't this also cache compiled PHP code?

https://owncloud.org/blog/making-owncloud-faster-through-caching/

@ghost
Copy link
Author

ghost commented Sep 21, 2015

TL;DR: we need both, the PHP opcache and APCu

These are two differnt types of caching. opcache as i stated above is a PHP Opcache, it caches the compiled version of the PHP script. APCu is a user cache (Key-Value Store), which is used by owncloud to cache expensive database queries. APCu is APC without the PHP Opcache, afaik APC wont work with PHP 5.5 an up anymore.

@yosifkit
Copy link
Member

APCu is installed. Only 8.1 is using PHP 5.6, would it help to update the other versions of owncloud to use 5.6 so that they also can have opcache enabled? I would greatly enjoy a PR, thanks for the help!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants