Download & Extend

APC - Alternative PHP Cache

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. Besides a opcode cache it provides a user cache for storing application data. This module uses the APC user cache as a cache backend for Drupal.

Use APC for caches that do not change often and will not grow too big to avoid fragmentation. The default setting of APC will allow you to store 32 MiB for the opcode cache and the user cache combined. Make sure you tweak this according to your website's needs. An example configuration could be to cache 'cache' and 'cache_bootstrap' in APC; 'cache_field' and 'cache_menu' in Memcached and store 'cache_filter' in the database

What is the difference of this module compared to other caching modules:

  • Memcache
    • Memcache is used by installing a PHP extension that communicates with a Memcache deamon run on the same or a different machine using TCP. APC is also an extension and is often activated because it is used as opcode cache. APC allows direct access to the cache in memory were memcache first needs to communicate over TCP. Memcache should be used for caches which can get large or change often like 'cache_field' and 'cache_menu'.
    • Multiple webnodes connect to the same Memcache deamon and use the same cache. With APC all the webnodes have their own cache. For caches which do not change often like 'cache' and 'cache_bootstrap' this is not a problem and gives a speed gain compared to Memcache.

Maintainers

Installation instructions

Downloads

Recommended releases

Version Downloads Date Links
7.x-1.0-beta3 tar.gz (9.91 KB) | zip (11.06 KB) 2011-Jun-21 Notes

Development releases

Version Downloads Date Links
7.x-1.x-dev tar.gz (9.86 KB) | zip (11 KB) 2011-Sep-14 Notes

Project Information


Maintainers for APC - Alternative PHP Cache

  • R.Muilwijk - 18 commits
    last: 21 weeks ago, first: 2 years ago
  • slantview - 5 commits
    last: 4 years ago, first: 4 years ago

Issues for APC - Alternative PHP Cache

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
Oldest open issue: 17 Jan 11
nobody click here