OPcache is designed to cache compiled PHP scripts bytecode 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.
To order OPcache memory do the following:
To enable OPcache on the 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 at the expense of reducing the number of disk operations.
To view the statistics of OPcache usage in the section “Hosting "In the block"Additional services»Click«OPcache statistics»:
In the OPcache statistics, you can find the following information: