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

znerol’s picture

Priority: Critical » Normal
Status: Active » Fixed

I'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:

$conf['filecache_fast_pagecache'] = TRUE;

According to the File Cache README.txt, this does not have any effect (not implemented).

$conf['page_cache_invoke_hooks'] = FALSE;

This setting has no effect, Authcache Builtin never invokes any hooks anyway when serving a page from the cache.

$conf['page_cache_maximum_age'] = 360000;

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).

$conf['cache_lifetime'] = 720000;

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:

Support requests should never be marked 'critical' or 'major' - if you believe you have run into a bug and it is preventing your site from working at all, post it as a bug report, however be prepared for other Drupal.org users to recategorise it as appropriate. The more-urgent priority is unlikely to give you better support; it is better to describe your issue thoroughly to help people understand what is wrong.

znerol’s picture

And 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 or cache_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:

PHP Fatal error:  Call to undefined function db_query() in includes/cache.inc on line 344
jetwodru’s picture

Hi,
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.

boost generates caches of pages that are directly served by web
server. File Cache can plug in regular Drupal page caching and provide
very fast page caching but this still needs a bit of PHP to be
executed. Database access can be avoided altogether though. See
$conf['filecache_fast_pagecache'] in README.txt.

So far I didn't hit any errors with the settings, meaning to say I'm running Authcache without database access, great. Thanks again.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.