If I in settings.php configure Mongodb cache with a value in $conf['cache_backends'], it does not work, but if I instead use include_once('.path_to/mongodb_cache/mongodb_cache.inc') it works.

I suppose it should not work like that.

Comments

Corwin’s picture

Try:
$conf['cache_backends'][] = 'sites/all/modules/mongodb/mongodb_cache/mongodb_cache.inc';
$conf['cache_default_class'] = 'DrupalMongoDBCache';

This is working for me in 7.x-1.x-dev. It's slower than MySQL but that's another issue.

misc’s picture

As I stated, that does not work for me, I use the latest from Git. But interesting that it works for you.

misc’s picture

Corwin, sorry, you were right. I added more settings for the cahe form the README.txt, and they does not work, and make $conf['cache_backends'][] break:

   $conf['cache_class_cache']           = 'DrupalMongoDBCache';
   $conf['cache_class_cache_bootstrap'] = 'DrupalMongoDBCache';

Those breaks it. I will update the README.txt, and mark this as fixed.

misc’s picture

Status: Active » Fixed

Saying one thing, doing another...

Status: Fixed » Closed (fixed)

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