keycdn / cache-enabler

A lightweight caching plugin for WordPress that makes your website faster by generating static HTML files.
https://wordpress.org/plugins/cache-enabler/
123 stars 46 forks source link

incompatible with image CDN plugins #120

Closed philbraun closed 4 years ago

philbraun commented 4 years ago

When using CDN-based image plugins like Flying Images or ShortPixel Adaptive Images, Cache Enabler changes URLs from the CDN-based ones to the basic WordPress-based ones when writing the cache file.

coreykn commented 4 years ago

The Cache Enabler plugin would not be change the URLs in this case, however, it's possible the issue is related to the output buffer. Can you please provide the before and after outputs? For example, a condensed HTML output of before the page is cached and after the page has been cached.

philbraun commented 4 years ago

Does this help? cache-enabler-before-after.zip

coreykn commented 4 years ago

Yes, that's very helpful. Thank you for providing that information @philbraun. This issue does appear to be related to the output buffer timing (similarly related to issue #78). The Cache Enabler output buffer timing will be updated to start earlier, which I believe will resolve this issue. Further updates to follow.