Table of content

WooCommerce & E-commerce Compatibility

DJIA Cache is fully compatible with WooCommerce and most other WordPress e-commerce plugins.

The plugin includes built-in logic to ensure that dynamic e-commerce pages remain accurate while still benefiting from caching wherever possible.


WooCommerce Integration

DJIA Cache includes native support for WooCommerce and automatically detects common e-commerce page types.

The following pages are automatically excluded from page caching:

  • Cart page
  • Checkout page
  • My Account page

Because these pages contain dynamic user-specific content, DJIA Cache automatically bypasses caching for them.

No manual configuration is required.


Automatic Cache Purging for Product Updates

When WooCommerce products are updated, DJIA Cache automatically refreshes related cached pages.

This applies when:

  • product prices change
  • stock levels update
  • product descriptions are edited
  • products are updated via the REST API

When a product update occurs, DJIA Cache will automatically:

  • purge the product page cache
  • purge related category pages
  • purge relevant archive pages
  • regenerate cache using the warm cache system

This ensures visitors always see the latest product information while maintaining high performance.


Serving Cached Pages with Items in Cart

DJIA Cache can still serve cached pages to visitors who have added items to their cart.

This works correctly on most WooCommerce sites because modern themes update the cart count dynamically using AJAX requests.

This allows the page itself to remain cached while the cart information updates in real time.


If the Cart Count Does Not Update

If the cart counter does not update after adding items, your theme may not support AJAX-based cart updates.

In this case you can bypass cache when WooCommerce cart cookies are present.

Steps

  1. Go to:
Settings → DJIA Cache → Cache
  1. Locate the Bypass cookies field.
  2. Add the following cookie name:
woocommerce_items_in_cart
  1. Click Save Changes.

This instructs DJIA Cache to bypass caching for users who currently have items in their cart.


Important Note

⚠ Bypassing cache for users with cart sessions may reduce your cache hit rate.

For best performance, it is recommended that your theme uses AJAX-based cart updates instead of disabling caching for cart users.

If needed, contact your theme developer to implement dynamic cart updates.


Other E-commerce Plugins

DJIA Cache also works with other WordPress e-commerce platforms, including:

  • Easy Digital Downloads (EDD)
  • SureCart
  • MemberPress
  • other checkout or membership plugins

For these platforms, you may need to manually exclude dynamic pages from caching.

Typical pages to exclude include:

/cart/
/checkout/
/account/

You can exclude them by going to:

Settings → DJIA Cache → Cache → Bypass paths

and adding the relevant URLs.