APC - Alternative PHP Cache

slantview - April 19, 2007 - 06:51

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 snapshotsDateSizeLinksStatus
6.x-1.x-dev2007-Aug-319.68 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.
5.x-1.x-dev2007-Sep-077.48 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.
 
 

Drupal is a registered trademark of Dries Buytaert.