Support » Plugin: W3 Total Cache » Bypass cache programatically

  • Resolved gruvii

    (@gruvii)


    Is there a way to bypass the W3TotalCache programatically in some cases? I know you can disable caching for logged in users and such for W3TotalCache already, but it would be nice to have a hook to do so. I have one of the more complex setups using CloudFlare and Amazon AWS on a multi-site setup and for dev purposes it would be great to be able to programatically disable the cache or minification, etc in certain instances.

    Example Case:
    http://www.domain.com -> cloudflare
    direct.domain.com -> points to your host, but pulls minified, cached content.

    I would like to do something like
    dev.domain.com and have that subdomain bypass the caching/minification/ etc.

    Right now I achieve this using the option to bypass the cache based on the user agent string and using a Chrome extension. But this is not the best way for many reasons.

    http://wordpress.org/extend/plugins/w3-total-cache/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter gruvii

    (@gruvii)

    I wonder if you could use the WP_CACHE constant and do this in the wp-config.php or the w3totalcache check for the W3TC_IN_MINIFY constant in advanced-cache.php

    Thread Starter gruvii

    (@gruvii)

    To be more specific I currently set “Rejected user agents:” under page and minify cache settings to “dev” then used a chrome extension to set the user agent. I just think there should be a better way based on a subdomain or other method.

    @gruvii, the plugin’s FAQ has usage on define’s you can add to exempt calls from page caching.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Bypass cache programatically’ is closed to new replies.