This project is not covered by Drupal’s security advisory policy.

Obsolete

This functionality is now included with Authcache. You no longer need a custom module for this.

What is this

Commerce Authcache allows the Drupal Commerce module to work with Authcache.

Why

Authcache provides a way to cache pages for authenticated users, updating parts of the page via AJAX requests for dynamic content. In case of Drupal Commerce, many parts of some pages are unique to the current user. For example, the cart block is unique per user, and thus cannot be cached with the page it's displayed on. With Commerce Authcache, the cart block gets loaded via an AJAX request after the page is first loaded. This means the page loads very fast, and the cart is still relevant to the current user.

Parts of Commerce that have been implemented

  • Commerce cart

Parts that need implementing

Possibly many.

If you have any suggestions for other parts that can/should be implemented, please open a new feature request in the issue queue.

Anonymous users

This module works fine for anonymous traffic as well, but there is a bug in Authcache that does not initialize the session when in debug mode #1979630: Commerce Authcache doesn't work for anonymous users.. This will make the cart always show up empty. Keep that in mind.

This module is sponsored by Connect-i.

Project information

Releases