W3 Total Cache Config

In order to use W3 Total Cache with Easy Digital Downloads, there are a few settings you need to ensure are setup correctly. This is a basic list of the settings that need to be configured.

General Settings

Page Cache: enabled with Disk: enhanced
Minify: disabled
Database cache: disabled
Object cache: enabled (Disk)
Browser cache: Enabled
CDN: enabled (this does not affect EDD)

Object Cache

Global Groups:
users
userlogins
usermeta
user_meta
site-transient
site-options
site-lookup
blog-lookup
blog-details
rss
global-posts

This is not an exact list and there will definitely be variations, but this is the config that has been shown to work. If you find other options / variations that work or don’t work, feel free to post them here. We will update this doc as needed.

Comments

  1. Thanks for the update, Pippin! This is definitely helpful – I’ll be sure to let you know if I uncover any other variations that improve performance without jeopardizing EDD functionality. Now if only I can figure out how to create a cloudfront CDN, lol…

    Reply

  2. Going to tinker with these settings. Everything has been working good, then suddenly I am getting cached empty carts.

    Reply

      • hughred22

        Yup! after upgrading to 1.5. I am having the same issue thanks god I am not the only one.

        My solution is to bypass page caches entirely whenever a page has EDD in it. This mean if a page I created has a EDD purchase button, this page has no page caches! So use regular expression to exclude all the download/ and checkout/ and then single out all the rest. Not the ideal solution. Hopefully Pippin can rule out the problem.

        Reply

  3. This is an update to my current W3 Total cache config on Extendd.com.

    General Settings

    Page Cache: enabled with Disk: enhanced
    Minify: disabled
    Database cache: enabled (Disk) *
    Object cache: enabled (Disk)
    Browser cache: Enabled

    *The Database cache can be a tricky one, but I found my site had far to many database queries happening. Over 100 on some pages, so I really needed this on. For both Page Cache and Database cache (on there own page settings) be sure to add your checkout page to the ignore list. Mine looks like:

    /checkout

    But on the Database cache I had to add the following, where ‘plugin’ is y custom post type holding my plugins (not a renamed ‘download’ post type).

    /plugin/+
    /checkout

    The biggest difference in my settings is the use of Database cache.

    I’d also like to note that I have EDD AJAX turned off, as I found issues with items not adding to cart. (could be a specific case to my site with other functions, js and custom post types..

    Reply

  4. modemlooper

    I have the same set up and have ajax on.

    Reply

  5. I have the same setting, but the downloads are not working. Can sample help? Can you send me a w3 setting that work that I can import and use? thanks!

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>