Configuring the Authcache module

To configure the Authcache module settings, go to Site Configuration |

Performance | Authcache or by visiting this URL: http://localhost/drupal/ admin/settings/performance/authcache. You should see a form that looks similar to this:

This settings page shows us that we can set caching for specific roles. You can set caching for all of your site's roles or just for specific roles such as anonymous users. The settings also tell you here that the super user admin role account will never be cached. Let's check the Enable caching for specified user roles boxes next to the anonymous user and the authenticated user.

Check the box next to Invalidate all user sessions. By doing this your authenticated users will be forced to login to the site again (if they are currently logged in for their user session).

Expand the Authcache Debugging/Development section and check the boxes for Enable debug mode for all roles and Enable for session if http;//localhosf/drupal/ authcache_debug is visited. Also, check the box next to Benchmark database queries so that you can gather statistics on the number of queries used, query time, and percentages related to the page load time.

Click on the Save & clear cached pages button.

Once saved, Authcache will show you a message stating the following:

• 0 user sessions have been invalidated

• Drupal's built-in page caching for anonymous users has been disabled to avoid redundant caching

• Your Authcache settings have been saved

• Cached pages have been cleared

You may also see a message telling you to enable Page compression in your performance settings. This will help to optimize your page load performance even more. You can decide whether you want to enable Page compression or not.

Page Caching Settings

Click on the Page Caching Settings tab on your Authcache Page Caching Settings admin page. This will launch the Caching Ruleset configuration. This page and form is only visible once you set up the initial Authcache configuration as per the instructions in the previous section. You should see a screen that looks like the following:

This form allows you to cache specific pages on your site using Authcache or to cache all pages. The Cache-specified pages section is set up similar to how Boost works, as well as the block administration page. You'll notice here that Authcache adds some default pages that are not going to be cached including any /admin page. The full list of these pages looks like this:

admin* user*


node/*/edit node/*/track tracker*




*/autocomplete/* ajax_comments*

Let's leave these sensible Authcache defaults in place. You can also choose which roles to apply this specific ruleset. If you want to add different rulesets for each role, you can then click on the Add new ruleset... button and this will add an entirely new ruleset that you can configure for your role. You can see that this module provides a lot of flexibility and functionality similar to the Boost module.

Clicking on the Add new ruleset. button, you'll then be presented with a new ruleset form:

When you are satisfied with your configuration, click on the Save & clear cached pages button again.

Was this article helpful?

0 0

Post a comment