KNOWNHOST WIKI

User Tools

Site Tools


developmental:php-opcode-caching-guide

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
developmental:php-opcode-caching-guide [2019/10/11 08:06]
Karson N.
developmental:php-opcode-caching-guide [2020/05/26 15:03] (current)
Karson N.
Line 103: Line 103:
  
 
You can see that by default OPcache is enabled but disabled for CLI version of PHP. You could also notice that validate_permission is turned on which is important in 
You can see that by default OPcache is enabled but disabled for CLI version of PHP. You could also notice that validate_permission is turned on which is important in
-shared environments. 
Detailed description for each parameter is available at: * http://​php.net/​manual/​en/​opcache.configuration.php+shared environments. 
Detailed description for each parameter is available at: * ((http://​php.net/​manual/​en/​opcache.configuration.php)) 
 +[[http://​php.net/​manual/​en/​opcache.configuration.php|php.net/​manual/​en/​opcache.configuration.php]]
  
 
To view the current settings you can also run: 
To view the current settings you can also run:
Line 115: Line 116:
  
 === opcache-gui === === opcache-gui ===
-This is a useful tool for monitoring OPcache performance. The site of the project: ​https://​github.com/​amnuts/​opcache-gui+This is a useful tool for monitoring OPcache performance. The site of the project: ​ 
 +((https://​github.com/​amnuts/​opcache-gui))[[https://​github.com/​amnuts/​opcache-gui|GitHub Link]]
  
 
Just copy the file index.php (of course with renaming it to, for instance, opcache.php) 
Just copy the file index.php (of course with renaming it to, for instance, opcache.php)
Line 131: Line 133:
 =
=== APCu ==== =
=== APCu ====
 APC User Cache. Does not cache actual opcode like Zend OPcache and APC. Instead, it caches user data which allows it to run alongside Zend OPcache. APC User Cache. Does not cache actual opcode like Zend OPcache and APC. Instead, it caches user data which allows it to run alongside Zend OPcache.
-
Source code of the project is located at: * https://​pecl.php.net/​package/​APCu+
Source code of the project is located at: * [[https://​pecl.php.net/​package/​APCu|pecl.php.net/​package/​APCu]]
  
 
=== Installation on EasyApache 3 === 
=== Installation on EasyApache 3 ===
Line 160: Line 162:
 
=== Monitoring APCu ===  
=== Monitoring APCu === 
  
-There'​re several well-known scripts which use function apcu_cache_info() to monitor cache usage. An example of such tool is described at: https://​anavarre.net/​how-to-monitor-and-tune-apcu/​+There'​re several well-known scripts which use function apcu_cache_info() to monitor cache usage. An example of such tool is described at: ((https://​anavarre.net/​how-to-monitor-and-tune-apcu/​))[[https://​anavarre.net/​how-to-monitor-and-tune-apcu/​|anavarre.net/​how-to-monitor-and-tune-apcu/​]]
  
-
Download the php script https://​raw.githubusercontent.com/​krakjoe/​apcu/​master/​apc.php in site's document root. Then open it in a browser and you could see the current cache usage.+
Download the php script ​((https://​raw.githubusercontent.com/​krakjoe/​apcu/​master/​apc.php)) [[https://​raw.githubusercontent.com/​krakjoe/​apcu/​master/​apc.php|in site's document root]]. Then open it in a browser and you could see the current cache usage.
  
 
{{developmental:​apcu.jpg?​nolink&​800|}} 
{{developmental:​apcu.jpg?​nolink&​800|}}
developmental/php-opcode-caching-guide.1570799202.txt.gz · Last modified: 2019/10/11 08:06 by Karson N.