1. Install Drupal 6.10.
  2. Install CacheRouter 6.x-1.0-beta8 and Enable it.
  3. Add
    $conf['cache_inc'] = './sites/all/modules/cacherouter/cacherouter.inc';
    $conf['cacherouter'] = array(
      'default' => array(
        'engine' => 'db',
        'server' => array(),
        'shared' => TRUE,
        'prefix' => '',
      ),
    );
    

    in settings.php.

  4. Go back to admin/module page and it showed the following warning:

    warning: Missing argument 1 for dbCache::flush(), called in ...\sites\all\modules\cacherouter\CacheRouter.php on line 57 and defined in ...\sites\all\modules\cacherouter\engines\db.php on line 83.
  5. Replace function flush($flush) with function flush($flush = NULL) according to the instruction at #393430: getting some warnings on "db" mode.
  6. The warning disappear but CacheRouter is no where to be found in Administer.

How do we install CacheRouter? My goal is to enable CacheRouter with APC.

Comments

danielnolde’s picture

the error you describe relates to db-based caching
if your goal is to replace default db-based caching with APC-based caching, then configure just that (to use APC) and skip trying to use cacherouter with db-caching (if that is a problem with D6.10).
Give APC-only a try, perhaps it works and you don't need to bother about your db-caching related error ... ?

davidjbullock’s picture

I've tried db, memcache, and APC

The administrator menu never shows up and I can't see any evidence tha t its working

xn2001’s picture

the error you describe relates to db-based caching
if your goal is to replace default db-based caching with APC-based caching, then configure just that (to use APC) and skip trying to use cacherouter with db-caching (if that is a problem with D6.10).
Give APC-only a try, perhaps it works and you don't need to bother about your db-caching related error ... ?

I did try already with APC and it was giving me the following warning:

warning: Invalid argument supplied for foreach() in .../sites/all/modules/cacherouter/engines/apc.php on line 121

That is why I decided to do a CLEAN install with only Drupal & CacheRouter and see if it works out of the box but it didn't.

Netzarim’s picture

I am not seeing any error messages, but I am also not seeing any admin menu for this module.

aaronshaf’s picture

I'm not seeing the admin for this either.

marcus0263’s picture

I'm having the same issue, I changed the db caching to xcache and I receive this error

warning: Invalid argument supplied for foreach() in /var/www/drupal-6.12/sites/all/modules/cacherouter/engines/xcache.php on line 122.

This is with Drupal 6.12

marcus0263’s picture

Oh, forgot to mention I applied the patch also and I also do not have any "Cache Router Admin" in my Site Config. Having the same error/issues with db cache and xcache does not work.

So db cache, Cache Router never shows up in Site Config and xcache pukes and crashes the entire site.

adminfor@inforo.com.ar’s picture

There is no admin menu for this module. Setup is into settings.php

marcus0263’s picture

????

http://drupal.org/node/330237

They need to update the page for this mod ;)

I'll test for the db cache then, I run xcache and it pukes my entire site when I activate this mod for xcache.

Anyone have any comparison of running this mod in db cache over just a standard xcache setup on Apache?

Cheers

slantview’s picture

Status: Active » Fixed

The admin interface has not been released yet. Doesn't mean that the module doesn't work.

Status: Fixed » Closed (fixed)

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