Posted by ball.in.th on October 27, 2009 at 10:34am
2 followers
Jump to:
| Project: | Cache |
| Version: | 6.x-1.0-beta1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Hello,
Once I enabled 'cache_page' bin, logged in users are served with cached pages for anonymous users. Not sure if I did something wrong, here's my settings.
<?php
$conf['cache_inc'] = './sites/all/modules/cache/cache.inc';
$conf['cache_settings'] = array(
'engines' => array(
'db-engine' => array(
'engine' => 'database',
),
'memcache-custom' => array(
'engine' => 'memcache',
'server' => array(
'localhost:11211',
),
'shared' => FALSE,
'prefix' => '',
),
'memcache-page' => array(
'engine' => 'memcache',
'server' => array(
'localhost:11212',
),
'shared' => FALSE,
'prefix' => '',
),
),
'schemas' => array(
'db-schema' => array(
'db-engine',
),
'memcache-custom' => array(
'memcache-custom',
),
'memcache-page' => array(
'memcache-page',
),
),
'bins' => array(
// Bin name => Schema name.
'default' => 'db-schema',
'cache_custom' => 'memcache-custom',
'cache_page' => 'memcache-page', // if this whole line is commented, it's ok
),
);
?>
Comments
#1
Does it work when you reload page?
Have you really logged in? Do you have cookies enabled?
#2
Thanks a quick reply. Reloading didn't help. I have a block that displays current username and on some pages I could still see the correct username, so I was really loged in. Cookies was also enabled.
I've managed to fix this by adding $conf['page_cache_fastpath'] = FALSE; to settings.php. It seems fast_path wasn't working correctly. I was already loged in when I turned on the cache_page. Maybe hook_user didn't get triggered?