Enable PHP 5.5 opcache #9

Closed
opened 2015-04-30 21:57:06 +02:00 by alanorth · 1 comment
alanorth commented 2015-04-30 21:57:06 +02:00 (Migrated from github.com)

Needs to be enabled in /etc/php5/fpm/php.ini:

; Determines if Zend OPCache is enabled
;opcache.enable=0

See the PHP wiki for extra information, defaults, etc.

Needs to be enabled in `/etc/php5/fpm/php.ini`: ``` ; Determines if Zend OPCache is enabled ;opcache.enable=0 ``` See the [PHP wiki](https://php.net/manual/en/opcache.installation.php) for extra information, defaults, etc.
alanorth commented 2015-05-01 09:23:23 +02:00 (Migrated from github.com)

Works great with the following settings:

opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.revalidate_freq=60
opcache.fast_shutdown=1
opcache.enable_cli=1

The cache status can be visualized using opcache-status:

screen shot 2015-05-01 at 01 52 37

Works great with the following settings: ``` opcache.memory_consumption=128 opcache.interned_strings_buffer=8 opcache.max_accelerated_files=4000 opcache.revalidate_freq=60 opcache.fast_shutdown=1 opcache.enable_cli=1 ``` The cache status can be visualized using [opcache-status](https://github.com/rlerdorf/opcache-status): ![screen shot 2015-05-01 at 01 52 37](https://cloud.githubusercontent.com/assets/191754/7424009/e80fca54-efa4-11e4-909c-5ce8df4c9fcc.png)
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: alanorth/ansible-personal#9
No description provided.