• Hi.

    I am having problems with file downloads and W3 Total Cache.
    I use the plugin WP-Download Codes, for users to download files from my wordpress site. Unfortunately when W3 Total Cache ‘page cache’ is enabled the files only download as 0k bytes. If I turn off page caching then the files are downloaded at the correct file size. I have tried to exclude the download page from caching in the ‘Never cache the following pages’, and it states it is excluded when I show page source, but still the download fails.
    I really want page caching on the rest of my site as it speeds it up but unfortunately I need downloads to work.

    Any advise is greatly appreciated.

    site https://BoardroomMusicCollective.com

    https://www.ads-software.com/extend/plugins/w3-total-cache/

Viewing 12 replies - 1 through 12 (of 12 total)
  • I seem to be having the same problem, but with WP Super Cache. When caching is turned on, files download at 0 bytes.

    I think I’ve worked around it by adding “lease” to the list of strings to exclude from caching. It seems to be working for me so far; maybe that can help you in some way.

    Thread Starter boardroom bot

    (@boardroom-bot)

    Anyone have any other ideas?

    I can’t seem to cache or minify anything now with W3 Total Cache, or files only download as 0k.

    thanks in advance.

    misanthrop

    (@misanthrop)

    The plugin sends standard headers to the browser to download the respective files. The W3 Cache plugin somehow seems to ammend or overwrite these headers. Maybe it helps to exclude the wp-download-code plugin folder from the caching?

    Someone fixed this problem?

    I try all you said, but doesn’t work on my site.
    Downloaded files are only as 0k…

    I try to delete W3-total-cache but it is the same.
    I try to exclude the wp-download-code plugin folder from the caching but it is the same.

    Help!

    I’ve had this same problem, and contacted my web host. Stop using WP Super Cache and W3 Total Cache and use these two:

    DB Cache Reloaded
    and
    Hyper Cache

    Once I did that, my downloads started to work properly.

    and that is “DB Cache Reloaded” OR” DB Cache Reloaded Fix”
    and ‘Hyper Cache’ OR ‘Hyper Cache Extended’?

    All these different versions make it a bit confusing.

    As you say ‘and’… installing both isn’t giving any conflicts?

    I use “DB Cache Reloaded Fix” and “‘Hyper Cache” as suggested by my host and it works. The record label site I used it for has been adding Download Cards into all their vinyl and having people download directly from them.

    Plugin Contributor Frederick Townes

    (@fredericktownes)

    Donncha, how do you address this in WPSC? I can’t recall the old fix for W3TC from the past and the forum’s far to hard to search.

    I’d say the author of Download Codes needs to disable caching by defining the constant DONOTCACHEPAGE in the downloader.

    That will work with both W3 Total Cache and WP Super Cache too! ??

    Plugin Contributor Frederick Townes

    (@fredericktownes)

    Boom! Thanks Donncha!

    Can someone post a step-by-step tutorial for the “DB Cache/Hyper Cache” or the DONOTCACHEPAGE Solution for a rookie like me?
    I tried it and i don’t get any further. Do I miss something.
    I will defently buy you a coffee or two.

    thanks

    johnnyjules – you’ll have to ask the authors of those caching plugins to add support for DONOTCACHEPAGE.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘W3 Total Cache and WP Download Codes.’ is closed to new replies.