Hi,
May I know if my settings below appear correct ? I found no instructions at https://drupal.org/node/2160133 on the integration with filecache_fast_pagecache and then I modified the shared settings there a bit for file cache. Are my codes correct ? Especially this line $conf['cache_class_cache_authcache_key'] = 'DrupalFileCache'; . I check my status report, seemingly no problems reported but I don't know if the Authcache does really work behind now. I'm using Boost for anonymous whereas Authcache for logged-in users. Thanks.
$conf['cache_backends'][] = 'sites/all/modules/cacheobject/cacheobject.inc';
$conf['cache_class_cache_form'] = 'CacheObjectAPIWrapper';
$conf['cacheobject_class_cache_form'] = 'DrupalDatabaseCache';
$conf['filecache_fast_pagecache'] = TRUE;
$conf['authcache_builtin_cache_without_database'] = TRUE;
$conf['page_cache_invoke_hooks'] = FALSE;
$conf['page_compression'] = 1;
$conf['page_cache_maximum_age'] = 360000;
$conf['cache_lifetime'] = 720000;
$conf['cache_backends'][] = 'sites/all/modules/filecache/filecache.inc';
$conf['cache_backends'][] = 'sites/all/modules/authcache/authcache.cache.inc';
$conf['cache_backends'][] = 'sites/all/modules/authcache/modules/authcache_builtin/authcache_builtin.cache.inc';
$conf['cache_class_cache_page'] = 'DrupalFileCache';
$conf['cache_class_cache_authcache_key'] = 'DrupalFileCache';
Comments
Comment #1
znerol CreditAttribution: znerol commentedI've updated the respective handbook page with a section on File Cache and another one on how to verify the settings.
Some things worth consideration:
According to the File Cache README.txt, this does not have any effect (not implemented).
This setting has no effect, Authcache Builtin never invokes any hooks anyway when serving a page from the cache.
Without knowing anything about the content you are serving it is difficult to judge on that. However for nearly any content driven site, this setting would be much too high. It basically means that when you fix a spelling error in one of your articles, it is possible that users having accessed it before will see the old version up to 100 hours after it has been updated. The setting specifies the maximum number of seconds a browser is allowed to serve a page from the browser cache (instead of retrieving it from the site again).
Only do that if you integrate with Cache Expire like outlined in this handbook page.
Another thing: Please familiarize yourself with the issue-tracker rules, especially with priority levels:
Comment #2
znerol CreditAttribution: znerol commentedAnd another thing. It is rather easy to tell whether the database actually is bypassed or not. As soon as you specify
$conf['authcache_builtin_cache_without_database'] = TRUE;
, the database driver will not be started at all.If one of
cache_class_cache_page
orcache_class_cache_authcache_key
is misconfigured and the database is not started, a site will immediately break with a whitescreen of death. The error logged will look something like this:Comment #3
jetwodru CreditAttribution: jetwodru commentedHi,
Thank you for your detailed explanation and prompt response, yes, I'm using Expire Module and configured to Expire any pages which had been modified.
$conf['page_cache_invoke_hooks'] = FALSE;
This code is actually copied from File Cache readme.txt and I'm also wondering about the statement filecache_fast_pagecache not implemented yet but on its module page https://drupal.org/project/filecache, the following statement trigger my temptation to have a try.
So far I didn't hit any errors with the settings, meaning to say I'm running Authcache without database access, great. Thanks again.