Using the Authcache module for improving performance for logged-in users

The Authcache module provides full page caching for both anonymous and authenticated users, offering much faster page load times.

Authcache achieves authenticated page caching by loading dynamic elements during a second Ajax request, as shown in this flowchart. Starting with 7.x-2.x authcache integrates with Varnish. Retrieval of dynamic elements and personalized fragments optionally can be delegated to server-side ESI requests instead of Ajax.

Authcache 101: Intro to the Magical World of Caching

How Drupal Caching Works

Authcache 2 - The big picture

The feature-set of Authcache and its submodules can be divided into four subsystems:

Authcache 2 recipe: Upgrade to Varnish and ESI

Please note that this page contains advanced material. Both Drupal/Authcache as well as Varnish can be challenging to set up. The

Authcache 2 tuning guide - avoid the database

Rendered pages are cached in the database when using the Authcache Builtin Storage Backend module by default. As a result Drupal still needs

Authcache 2 tuning guide - integrate with Cache Expiration module

Many actions on a Drupal site trigger a flush of the entire page cache, including but not limited to (list courtesy of Brian K. Osborne):

Authcache 2 tuning guide - optimize cache-hit ratio

Please note, that this is an advanced topic. Blindly following the advice given here will potentially render a site insecure and might lead

Authcache 2 tuning guide - reduce number of Ajax / ESI calls

Please note, that this is an advanced topic. Blindly following the advice given here will potentially render a site insecure and might lead

How Authcache Ajax works

Authcache uses Ajax to retrieve dynamic content for cached pages after page load.

Installing Authcache 6.x

Installation

Modifying your Drupal theme for Authcache

The golden rule for Authcache is: the final cached page HTML must be the same for every user! For example, if you set up the "paid members"

Tutorial: Commerce Kickstart 2 and Authcache 2

Thanks to the Commerce ecosystem it became easy to put together extremely flexible online stores with Drupal. In order to showcase the

Guide maintainers

Jonah Ellison's picture