School Reading List
Forum Replies Created
-
Ok. We can see that you either don’t or don’t want to understand the issue. We’ll use another plugin. This thread can be closed.
A further proof of the bug:
If you comment out these lines in the autoptimize cache php file:
// Cache was just purged, clear page cache and allow others to hook into our purging... if ( true === $propagate ) { if ( ! function_exists( 'autoptimize_do_cachepurged_action' ) ) { function autoptimize_do_cachepurged_action() { do_action( 'autoptimize_action_cachepurged' ); } } add_action( 'shutdown', 'autoptimize_do_cachepurged_action', 11 ); add_action( 'autoptimize_action_cachepurged', array( 'autoptimizeCache', 'flushPageCache' ), 10, 0 ); }The issue resolves. .
Crucially, if you then manually purge the autoptimize cache from the admin bar, the WP Fastest Cache DOES NOT clear (if the above code is commented out). This proves that it is not a third party calling Autoptimize to clear AO’s cache thereby clearing WP Fastest Cache’s cache, as you suggested. It is in fact AO clearing WP Fastest Cache’s cache whenever the slightest change is made.
To stress how important this is – if a user has autoptimize installed with this bug, and uses a CDN, Cloudflare, or Cloudfront etc with paid per request pricing, then Autoptimize clearing an entire site’s cache uncommanded will cause a collosal cost increase in CDN bills as the entire site preloads/reloads.
Sorry, but it is your plugin causing the issue.
As I explained earlier, we’ve replicated with a fresh install, default theme, and just WP Fastest Cache and Autoptimize installed.
When Autoptimize is deactivated, the issue is resolved.
There is no doubt, I’m afraid, and I’m really sorry you don’t seem to want to pursue this.
We’ll use a different optimization plugin going forward.
Thanks for your time.
- This reply was modified 4 years, 10 months ago by School Reading List.
I’d also like to add that you will be able to replicate the issue with a clean install of WP 5.7, and just the WP Fastest Cache and Autoptimize plugins installed and active.
Sorry, but you have not understood the issue.
Nothing is “clearing AO’s cache”
AO
-
is clearing WP Fastest Cache’s cache.
We need to prevent AO from clearing the cache.
I hope you understand the issue. WP Fastest Cache’s chache is being cleared – uncommanded – by your plugin.
Please read our previous post which explains this, identifies the code in your plugin responsible and provides log file proof.
Thanks.
Check line 413 autoptimize/classes/autoptimizeCache.php
add_action( 'autoptimize_action_cachepurged', array( 'autoptimizeCache', 'flushPageCache' ), 10, 0 );and lines 778-780 :autoptimize/classes/autoptimizeCache.php
} elseif ( class_exists( 'WpFastestCache' ) ) { $wpfc = new WpFastestCache(); $wpfc->deleteCache();You will see that Autoptimize is causing the entire WP Fastest Cache’s cache to be cleared when a post is updated. In the WP Fastest Cache log this is indicated:
26-05-2021 @ 14:01:32 flushPageCachePlease advise on a fix. We don’t want a 3000 page website’s entire cache to be cleared when one word is changed! We have built our site arount Autoptimize and would hate to have to redevelop it with another optimisation plugin. Thanks for your time.
- This reply was modified 4 years, 10 months ago by School Reading List.
To be clear, it is not AO’s cache that is being cleared, it is cache generated by WP Fastest cache – ie every chached html page. AO is causing this.
Do you have a code snippet to turn this off?
We don’t use DIVI.
Literally changing one word on a post and updating is causing the entire HTML cache to be cleared.
When Autoptimize is deactivated the problem goes away.
Please can you help?
Forum: Plugins
In reply to: [LazyLoad Plugin – Lazy Load Images, Videos, and Iframes] Bug in pluginThanks for confirming that your plugin adds script for including an external .png file from Youtube’s servers to every page on a WordPress site, even on pages/posts that do not feature WordPress videos.
We’ll find another plugin to use for lazy loading until this item is fixed.
Have a great day!