Posts Tagged opcode
Alternative PHP Cache (APC)
Posted by Andrea De Pirro in PHP on October 23, 2009
The Alternative PHP Cache (APC) is a free and open opcode cache for PHP. Its goal is to provide a free, open, and robust framework for caching and optimizing PHP intermediate code.
Intermediate code is the internal memory structures produced during compilation that are fed into the executor. APC increases the performance of PHP scripts by caching them in their compiled state, so that the overhead of compiling is almost completely eliminated. APC stores and executes compiled PHP scripts from shared memory.

To activate APC on Windows with Xampp simply uncomment this string on the php.ini file in the php directory of Xampp. From:

To:

APC comes with useful graphical monitoring tool. It provides information about the APC state, cached files, amount of used and free memory, etc. Using this APC application, you can also clear all the caches without restarting Apache. This tool is also useful for tuning memory usage.
Access the application from a web browser via the URL http://localhost/apc.php.
The screenshot below shows the APC application:


