I have a Drupal installation with Memcached and APC modules enabled and PHP modules working and installed. The performance logging module thinks I do not have memcached enabled, though I am able to view memcached stats with each page so it appears to be operational... APC logging enabled ok...

Drupal settings.php config follows...

/**
* Add Memcached Caching.
*/
$conf['cache_backends'][] = 'sites/all/modules/memcache/memcache.inc';
$conf['cache_default_class'] = 'MemCacheDrupal';
$conf['cache_class_cache_form'] = 'DrupalDatabaseCache';

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

thanks

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

raggax2’s picture

Status: Active » Needs review

You may want to check your cache bins.
The module is checking for a specific cache_performance bin. If you don't have it defined the module will not register memcache as being available. As referenced in the README.txt:

    $conf = array(
      'cache_inc' => './sites/all/modules/memcache/memcache.inc',

      'memcache_servers' => array(
        '127.0.0.1:11211' => 'default',
        // More bins here ....
        '127.0.0.1:11311' => 'performance',
      ),

      'memcache_bins' => array(
        'cache_performance' => 'performance',
      ),
    );  
malc0mn’s picture

Correct... Could add a specific check on the settings page to inform the user of this though... As in 'Memcache enabled but no specific 'cache_performance' bin defined...?

raggax2’s picture

That's not a bad idea. I've included a patch that will set this message as a warning on the users page. I left the original error message the same (about memcache, apc, and zend not being enabled).

malc0mn’s picture

Status: Needs review » Closed (fixed)

Fantastic, thanks a lot for that! Applied to both 6.x-1.x and 7.x-1.x branch!

malc0mn’s picture

Version: 7.x-1.6 » 7.x-1.7-beta1
Assigned: Unassigned » malc0mn
Status: Closed (fixed) » Needs work

This got dropped along the line somehow, reopening...

malc0mn’s picture

Status: Needs work » Fixed

fixed again, available in the upcoming beta releases (b2 & b3)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.