ajout opcache
This commit is contained in:
parent
b79b8c6dab
commit
04826ed6c0
16
HowtoPHP.md
16
HowtoPHP.md
|
@ -623,6 +623,22 @@ Symfony hello ~102ms
|
|||
Symfony form ~164ms
|
||||
~~~
|
||||
|
||||
### OpCache
|
||||
|
||||
~~~
|
||||
# apt install php7.0-opcache
|
||||
~~~
|
||||
|
||||
Depuis PHP 5.6 (Debian 8), un cache d'OPcode (code "intermédiaire" généré par PHP) intégré à PHP permet d'accélérer la génération du résultat des scripts PHP. Il remplace les « accélérateurs » comme APC, eAccelerator, etc. utilissé dans les versions précédentes de PHP.
|
||||
|
||||
C'est le module OpCache configurable via `/etc/php5/mods-available/opcache.ini`.
|
||||
La valeur de cache par défaut est de **64M**, paramètre `opcache.memory_consumption`.
|
||||
|
||||
Pour surveiller OpCache on peut utiliser :
|
||||
|
||||
- <https://github.com/amnuts/opcache-gui>
|
||||
- Plugin Munin <https://github.com/munin-monitoring/contrib/blob/master/plugins/php/php_opcache> + <https://github.com/munin-monitoring/contrib/blob/master/plugins/php/php_opcache.php>
|
||||
|
||||
|
||||
## HHVM
|
||||
|
||||
|
|
Loading…
Reference in a new issue