im using Drupal 6.14 and authcache caches only pages for anonymous. i tried to check caching only for auth users, tried to use another role in settings but nothing works. Authcache Debug not shows too.
enabled authcache and cacherouter, need them work on xcache engine (allowed by hoster).

settings.php:

 $conf['cacherouter'] = array(
    'default' => array(
      'engine' => 'xcache',               // apc, memcache, db, file, eacc or xcache
      'server' => array(),             // memcached (host:port, e..g, 'localhost:11211')
      'shared' => TRUE,                // memcached shared single process
      'prefix' => '',                  // cache key prefix (for multiple sites)
      'path' => 'files/filecache',     // file engine cache location
      'static' => FALSE,               // static array cache (advanced)
    ),
  );
 $conf['cache_inc'] = './sites/all/modules/authcache/authcache.inc';

Comments

ManyNancy’s picture

Version: 6.x-1.0-rc1 » 6.x-1.0-rc2
Priority: Critical » Normal

Same problem, caching is enabled for anon but not for auth users.

Here is my settings.php:

# $conf['cache_inc'] = './sites/all/modules/authcache/authcache.inc';
$conf = array(
   'memcache_key_prefix' => 'mem_',
#   'cache_inc' => './sites/all/modules/memcache/memcache.db.inc',
   'cache_inc' => './sites/all/modules/authcache/authcache.inc',
   'memcache_servers' => array(
      		'127.0.0.1:11211' => 'default',
		'127.0.0.1:11212' => 'block',
		'127.0.0.1:11213' => 'filter',
		'127.0.0.1:11214' => 'form',
		'127.0.0.1:11215' => 'menu',
		'127.0.0.1:11216' => 'page',
		'127.0.0.1:11217' => 'updates',
		'127.0.0.1:11218' => 'views',
		'127.0.0.1:11219' => 'content',
		 ),
   'memcache_bins' => array(
			    'cache'        => 'default',
			    'cache_block'  => 'block',
			    'cache_filter' => 'filter',
			    'cache_form'   => 'form',
			    'cache_menu'   => 'menu',
			    'cache_page'   => 'page',
			    'cache_update' => 'update',
		   ),
);

I also have varnish installed... but not in use.

I'm using pressflow 6.15, PHP Version 5.2.6-3ubuntu4.5 mysql 5.0.75. I have APC installed also if it matters.

Thanks, I hope this can be resolved, because this module is really terrific.

Jonah Ellison’s picture

Assigned: Unassigned » Jonah Ellison

Hi ManyNancy, do you have a separate memcache instance running for each of those ports?

Also, can you try using the following and see if it works:

$conf['cache_inc'] = './sites/all/modules/authcache/authcache.inc';
$conf['memcache_servers']  = array('localhost:11211' => 'default');
ManyNancy’s picture

Thanks for the speedy response. I have no idea if there's separate memcache instances, I used mercury ami from chapter 3, and I didn't touch memcache.

I tried the config you just posted. Even the anon users stopped using authcache now. (after clearing cache).

I remember running into this problem back in RC1 on cacherouter with APC as the backend, and I didn't report it because I thought I might just have better luck with memcache, but no such. :)

Thanks a lot!

Edit: I changed the settings.php back to what I had it before and anon users are still not using authcache. I don't know if this tibbit is helpful but it might be a clue. Thanks again.

Jonah Ellison’s picture

Title: cache for authenticated users not work » cache for authenticated users not work (xcache/lighttpd, memcache/Mercury AMI)

I haven't tested yet with Mercury AMI... I will check it out.

ManyNancy’s picture

Thanks!

sultancillo’s picture

subscribe

ManyNancy’s picture

Mercury 1 has just been released.

ManyNancy’s picture

Just tried it on a clean site, still the same issue. Maybe interference from Varnish or something?

pdrake’s picture

I am experiencing this same problem and am using cacherouter with APC and am not using a reverse proxy such as Varnish.

ManyNancy’s picture

Yeah also doesn't work with cacherouter / apc.

ahoms’s picture

i'm also having the same problem. authcache working just for anonymous and not for athenticated. i've tried with memcache and without memcache.
does someone have something new about this issue?

thanks!

Jonah Ellison’s picture

Title: cache for authenticated users not work (xcache/lighttpd, memcache/Mercury AMI) » cache for authenticated users not work for Pressflow
Status: Active » Closed (duplicate)