Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
ManyNancy CreditAttribution: ManyNancy commentedSame problem, caching is enabled for anon but not for auth users.
Here is my settings.php:
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.
Comment #2
Jonah Ellison CreditAttribution: Jonah Ellison commentedHi 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:
Comment #3
ManyNancy CreditAttribution: ManyNancy commentedThanks 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.
Comment #4
Jonah Ellison CreditAttribution: Jonah Ellison commentedI haven't tested yet with Mercury AMI... I will check it out.
Comment #5
ManyNancy CreditAttribution: ManyNancy commentedThanks!
Comment #6
sultancillo CreditAttribution: sultancillo commentedsubscribe
Comment #7
ManyNancy CreditAttribution: ManyNancy commentedMercury 1 has just been released.
Comment #8
ManyNancy CreditAttribution: ManyNancy commentedJust tried it on a clean site, still the same issue. Maybe interference from Varnish or something?
Comment #9
pdrake CreditAttribution: pdrake commentedI am experiencing this same problem and am using cacherouter with APC and am not using a reverse proxy such as Varnish.
Comment #10
ManyNancy CreditAttribution: ManyNancy commentedYeah also doesn't work with cacherouter / apc.
Comment #11
ahoms CreditAttribution: ahoms commentedi'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!
Comment #12
Jonah Ellison CreditAttribution: Jonah Ellison commentedFix for Pressflow: #967972: Add Pressflow compatibility by changing JavaScript detection method (committed to dev)