OPcache is designed to cache the compiled bytecode of PHP scripts in RAM. Its use allows to some extent speed up the work of site scripts and reduce the load they create on the web server. OPcache can be used on any site, no special site support is required.
OPcache has been available since PHP 5.5.
To order OPcache memory, do the following:
To enable OPcache for a site, do the following:
The parameter "Change check frequency» (opcache.revalidate_freq) defaults to zero. This means that with each request it will check whether the script has changed and whether it can still be taken from the cache or needs to be called again. It makes sense to use a value greater than zero if the site receives a large number of requests and its files are not being edited. This will give some performance gain by reducing the number of disk operations.
To view detailed information about OPcache usage statistics, in the section “Hosting "In the block"Additional services»Click«OPcache statistics»:
In the OPcache statistics, you can find the following information: