Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I had the APC PHP extension enabled it it seems to work well. I had 0.0% misses and not much fragmentation. Then I installed the APC module with:

$conf['cache_backends'][] = 'sites/all/modules/apc/drupal_apc_cache.inc';
$conf['cache_class_cache'] = 'DrupalAPCCache';
$conf['cache_class_cache_bootstrap'] = 'DrupalAPCCache';

in settings.php. After that the fragmentation becomes enormous and I can't see any performance loss when I disable the module again, but with it is actually enabled I get annoying messages when I use drush. So what exactly is the advantage of using that module?

share|improve this question
add comment

1 Answer

up vote 6 down vote accepted

Using APC with PHP and the APC module are two totally different things.

APC for PHP caches the opcode for files. Essentially, when PHP executes a page, it compiles all of the code into opcode. APC caches this, so the next time a file gets used, it can skip the compilation step. This can cause tremendous speed increases in a complex PHP application like Drupal. Running Drupal without APC enabled is a bad idea.

The APC Module is an alternative cache backend for Drupal. Out of the box, Drupal caches data in the database. The APC Module lets Drupal cache the data in the APC user cache. As with everything, tuning APC is essential to getting this to work well.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.