Zend Server User Guide > Tasks > Working with OPcache

Working with OPcache

The OPcache runs out-of-the-box (by default, after installation). OPcache allows you to gain a performance boost by reducing code compilation time. When PHP code is compiled for the first time, it is saved in the server’s memory. Each time the code is called, the pre-compiled version is used instead of waiting for the code to compile, which causes a delay each time the code is used.

The general recommendation is to always keep the OPcache loaded to boost Web application performance.

Note:

OPcache is only available on Zend Server on PHP 5.5.

Important:

Using the OPcache should not be confused with caching. The OPcache saves a compiled script to the server's memory, while Caching saves the script’s output to the server’s memory.

 

Read Also

  OPcache