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.

$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

doq’s picture

Does it work when you reload page?
Have you really logged in? Do you have cookies enabled?

ball.in.th’s picture

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?