Alternative PHP cache

from Wikipedia, the free encyclopedia
Alternative PHP cache
Basic data

developer APC maintainers
Current  version 3.1.9
(May 14, 2011)
Current preliminary version 3.1.13
(September 3, 2012)
operating system Multi-platform
programming language C.
category PHP accelerator
License PHP license
German speaking No
pecl.php.net/package/apc

The Alternative PHP Cache ( APC ) is an open source add-on module for PHP that enables the accelerated execution of PHP scripts. The acceleration is achieved by the fact that the compiled PHP source text is cached and the time-consuming compilation can be almost completely avoided if it is executed repeatedly.

The APC also includes a user cache. Simple values ​​as well as complex objects can be buffered in it. The storage takes place in the shared memory of the web server. This can, for example, reduce the database server load for frequently recurring requests. When saving the variables, you can specify a service life in seconds after which the value should be deleted.

The cache is implemented as a hash table in the C programming language.

APC was further developed with the support of Yahoo and is now part of the Yahoo! Shops integrated. APC is one of the first PHP caches to support PHP 5.0 and higher. It was planned to firmly integrate APC in PHP version 6.0 so that APC is available natively, but this was discarded before this version was released. In version 5.5 the Zend Optimizer is now integrated into the PHP core.

In the PHP Magazine Reader's Choice 2003, APC took third place in the category Best PHP Bytecode Caches with 6% - behind PHP Accelerator with 48% and Zend Performance Suite with 45%. In 2006, 2007 and 2008 APC is no longer under the placements.

See also

Web links

swell

  1. PHP Magazine: PHP 6: What to Expect ( Memento from August 28, 2012 in the Internet Archive )
  2. The PHP.net wiki: Integrating Zend Optimizer + into the PHP distribution , January 28, 2013
  3. PHP Magazine Reader's Choice 2003 ( Memento from March 4, 2007 in the Internet Archive )
  4. PHP Magazine Reader's Choice 2006 ( Memento from December 13, 2012 in the Internet Archive )
  5. PHP Magazine Reader's Choice 2007 ( Memento from December 13, 2012 in the Internet Archive )