• 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 3 replies - 31 through 33 (of 33 total)
  • Plugin Contributor Will Stocks

    (@willstockstech)

    I think that that the CDN-side functionality is probably more a problem for W3TC to resolve? I don’t think there’s anything you would be able to do there unless you added CDN push functionality to OGC.

    I’m going to reinitiate my dev environment, get it up to date and check transfer errors with them (W3TC) as the images were all on my server, but a few did not upload.

    If I don’t use the CDN, OGC now works perfectly with W3TC ??

    Plugin Author José Miguel

    (@jomisica)

    Thank you @willstockstech!

    Let me know the results of the tests you perform.

    Adding support for CDN is not at all my idea, it would be almost impossible for me to support all existing CDNs.

    Plugin Contributor Will Stocks

    (@willstockstech)

    Definitely I will do!

    You’re welcome to use my test platform if you ever want to – saves you having to setup different types of environments? I also pay for it whether it’s running or not (annoyingly), so you’re more than welcome!

    Yes, I agree – most people stick to the main competitors (AWS, DigitalOcean, KeyCDN, MaxCDN) but it’s a lot of burden to support them. I’m hoping I can resolve the issue with W3TC’s CDN functionality, as that would be great! ??

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