• ResolvedPlugin Contributor Will Stocks

    (@willstockstech)


    Per discussion, support for W3TC would be beneficial, as W3TC is one of the (if not the) biggest caching plugins on WP (over 1m installs).

    I’m adding the following to my install:

    case 'w3-total-cache':
    	foreach ($postsIDsToClear as $postIDToClear) {
    		w3tc_flush_post((int)$postIDToClear);
    		w3tc_cdn_purge_files(); //Pass rray consisting of uri paths (i.e /wp-content/uploads/optimum-gravatar-cache/avatar/2.jpg)
    	}
    break;

    and

    if (defined('W3TC')) {
    	$this->cachePagePlugins='w3-total-cache';
    	return;
    }

    Using the w3tc_cdn_purge_files(); function is to be confirmed, based on: https://www.ads-software.com/support/topic/api-documentation-6/#post-11170484 – you likely do not want to “purge” a file, it’s probably more appropriate to “invalidate” a URI?

Viewing 15 replies - 1 through 15 (of 33 total)
Viewing 15 replies - 1 through 15 (of 33 total)
  • The topic ‘W3TC support’ is closed to new replies.