Introduction to PHP-APC

by stilling2006 on 2008-11-11 11:41:56

The previous few articles mentioned APC. Many people have asked me: What is APC? Here, I will provide a more comprehensive introduction:

APC, which stands for Alternative PHP Cache, is officially translated as "optional PHP cache." However, I personally think it should be called "another PHP cache," because if it's referred to as "optional PHP cache," it might give people the wrong impression that it is something dispensable and not very useful.

The homepage of APC is: http://pecl.php.net/package/apc

The current version is 3.0.14, and it can be installed via PECL. It requires PHP version 4.3.0 or higher.

APC Installation:

Generally, you download the source code and compile it using phpize for installation. After installation, you just need to add one line in php.ini: “extension=apc.so”.