APC - Alternative PHP Cache
About
APC is two things. First it is an opcache and second it is a memory based cache. This module only handles the latter. This module overrides the built in caching in Drupal and uses memory based caching instead of database based caching.
Due to some recent reports of errors, please test that this is working before installing in a production environment
Installation
The apc.inc file is intended to be used instead of cache.inc, utilizing Drupal's pluggable cache system. To make this happen, you need to update $conf in settings.php to tell Drupal which cache_inc file to use. To install do the following:
First off, you will need the PECL APC Package available at http://pecl.php.net/package/APC. The current version is 3.0.14 as of this writing. This can be done as root on the command line with the following:
webserver# pecl install apc Next, you will need to download the Drupal module into your sites/all/modules directory and unpack.
Lastly, Add the following to your settings.php file at the bottom:
<?php
$conf = array(
'cache_inc' => './sites/all/modules/apc/apc.inc',
);
?>TODO
If anyone is interested in writing a module to get stats from apc and display them via either the devel module or some other way, that would be great.
If anyone can do some real performance tests and verify that this is working correctly, that would be great also.
Releases
| Development snapshots | Date | Size | Links | Status | |
|---|---|---|---|---|---|
| 6.x-1.x-dev | 2007-Aug-31 | 9.68 KB | Download · Release notes | Development snapshot | |
| 5.x-1.x-dev | 2007-Sep-07 | 7.48 KB | Download · Release notes | Development snapshot | |
