I have a problem with Authcache and users page, so user/login user/register user/password on these pages anonymous get just garbage chars, like

�� IH�M �J: 0 q ��3&?6UH��,)����s��~����s'� 83S J��<��5#� �j%�� �%^ZQ�B t�U�H �P�� �@ �b ��qZX ���:!�/.N�� 9}}���zyz��5���K�������~E U`�x�2�jId;��1�� ����� ���H ��o#�'��eQ% D1��W٢ + ܟ�] _] o|?P��I� �Q [�z�q�y#DدH� ��܄� ƅ�!�1`�Wq� Ґ#>]ꈾ%n�OK��4SXB\ˏ� �pa)T<)�CC�1+��č�C +�Gx ^����"�Иɏ �|X �@ IP�L�� n_��\+?Zӌ! �[m�\g�f �� �%U� ��B\��~,,��P�XZ ��p��X �@��� ��hhw��J� ���c�y�s�} �,lY����� � U��X)�hpy���

I use also ajax_register and for the same issue it doesn't works, when I disable Authcache all work nice

I have also Varnish, Memcache and Filecache installed with this configuration

// Add Varnish as the page cache handler.
$conf['cache_backends'] = array('sites/all/modules/varnish/varnish.cache.inc');
$conf['cache_class_cache_page'] = 'VarnishCache';
// Drupal 7 does not cache pages when we invoke hooks during bootstrap. This needs
// to be disabled.
$conf['page_cache_invoke_hooks'] = FALSE;

$conf['reverse_proxy'] = true;
$conf['page_cache_invoke_hooks'] = false;
$conf['cache'] = 1;
$conf['cache_lifetime'] = 0;
$conf['page_cache_maximum_age'] = 21600;
$conf['reverse_proxy_header'] = 'HTTP_X_FORWARDED_FOR';
$conf['reverse_proxy_addresses'] = array('127.0.0.1');
$conf['omit_vary_cookie'] = true;

// Memcache

$conf['cache_backends'][] = 'sites/all/modules/memcache/memcache.inc';
$conf['cache_backends'][] = 'sites/all/modules/authcache/authcache.inc';
$conf['cache_default_class'] = 'MemCacheDrupal';
$conf['memcache_key_prefix'] = 'Memcache';
$conf['memcache_servers']  = array('127.0.0.1:11211' => 'default');
//$conf['cache_class_cache_form'] = 'DrupalDatabaseCache';
$conf['cache_inc'] = 'sites/all/modules/authcache/authcache.inc';

// Filecache
$conf['cache_backends'] = array('sites/all/modules/filecache/filecache.inc');
$conf['cache_default_class'] = 'DrupalFileCache';

I already set user* to exclude pages from cache.

Any suggestions ?

thanks

Comments

Asome’s picture

oups sorry, I think garbage chars has broken my post

I use also ajax_register and for the same issue it doesn't works, when I disable Authcache all work nice

I have also Varnish, Memcache and Filecache installed with this configuration

// Add Varnish as the page cache handler.
$conf['cache_backends'] = array('sites/all/modules/varnish/varnish.cache.inc');
$conf['cache_class_cache_page'] = 'VarnishCache';
// Drupal 7 does not cache pages when we invoke hooks during bootstrap. This needs
// to be disabled.
$conf['page_cache_invoke_hooks'] = FALSE;

$conf['reverse_proxy'] = true;
$conf['page_cache_invoke_hooks'] = false;
$conf['cache'] = 1;
$conf['cache_lifetime'] = 0;
$conf['page_cache_maximum_age'] = 21600;
$conf['reverse_proxy_header'] = 'HTTP_X_FORWARDED_FOR';
$conf['reverse_proxy_addresses'] = array('127.0.0.1');
$conf['omit_vary_cookie'] = true;

// Memcache

$conf['cache_backends'][] = 'sites/all/modules/memcache/memcache.inc';
$conf['cache_backends'][] = 'sites/all/modules/authcache/authcache.inc';
$conf['cache_default_class'] = 'MemCacheDrupal';
$conf['memcache_key_prefix'] = 'Memcache';
$conf['memcache_servers']  = array('127.0.0.1:11211' => 'default');
//$conf['cache_class_cache_form'] = 'DrupalDatabaseCache';
$conf['cache_inc'] = 'sites/all/modules/authcache/authcache.inc';

// Filecache
$conf['cache_backends'] = array('sites/all/modules/filecache/filecache.inc');
$conf['cache_default_class'] = 'DrupalFileCache';

I already set user* to exclude pages from cache.

Any suggestions ?

thanks

simg’s picture

generally speaking, the garbage characters are related to http compression. they appear when there is some mismatch between what authcache is sending eg compressed / uncompressed and what the browser will accept.

if you have http compression enabled in php.ini, authcache does attempt to disable it to avoid problems. without replicating your configuration, it's hard for me to debug.

does this give you any clues ?

if you find an answer, please post, or you're welcome to ask more questions.

vidichannel’s picture

If they appear at the bottom of the page and you are using Administration Menu there may be an easy fix- Turn off the option that says "Cache menu in client-side browser".

admin/config/administration/admin_menu

vidichannel’s picture

deleted double post

simg’s picture

Status: Active » Closed (fixed)