Hello,
If you run the preloader on Cache >> Preload does the cache size change on the Page cache tab? You may also wish to run a plugin conflict test by temporarily disabling all plugins aside from WP-Optimize and test to see if the pages are cached.
Thread Starter
Cekker
(@cekker)
Hi! Thanks for your reply.
No, cache size doesn’t change on the page cache tab, and the FTP folder of the cache is empty.
OK, i’m going to run a plugin conflict test in a couple of hours. I will let you know if something changes.
Can we have your site URL?
Thread Starter
Cekker
(@cekker)
Hello! Unfortunately, conflict found 🙁
The problem seems to be caused by the Replace Google Fonts with Bunny Fonts plugin. A very useful plugin that, doing what it says, helps to stay compliant with GDPR.
How to figure out how this plugin conflicts with yours and/or vice versa?
Should i try deferring the JS of one of the two? Or all the JS? Do you have any suggestions?
I can try to contact the author of the other plugin as well, to retrieve more information also from his side.
I think the problem can be reproduced, but if necessary i can give you the link of my staging server where i’m making all the test. If possible to give it privately.
Hello,
Thank you for confirming this. I have recreated the error, I will consult with the development team on this and update you shortly.
Thread Starter
Cekker
(@cekker)
I’m happy to hear you’ve been able to reproduce the error. OK, i’ll wait for some updates from your side. Thank you!
Hello,
I just wanted to keep you updated, I have spoken to my colleague about this issue and we may have a resolution but I will have more details early next week.
Thread Starter
Cekker
(@cekker)
Thank you very much. No problem. Whenever you can.
Hello @cekker,
Thank you for your patience. Please use the following steps:
- Ensure both WP-Optimize and Replace Google Fonts with Bunny Fonts are activated
- Install a PHP snippets plugin such as this one https://ww.wp.xz.cn/plugins/code-snippets/
- Add a new snippet to the plugin with the following code
if (is_plugin_active('wp-optimize/wp-optimize.php')) {
remove_action('init', 'al_bunny_init_ob');
remove_action('shutdown', 'al_bunny_shutdown', 0);
add_filter('wpo_pre_cache_buffer', function($content) {
return apply_filters('al_bunny_fonts_filter_output', $content);
});
}
- Test by preloading the cache in WP-Optimize
Although we have tested it, if you have any problems when the snippet is activated you can rename the snippet plugin folder which will de-activate the snippet if it causes an error. If this occurs please let me know.
Thread Starter
Cekker
(@cekker)
First of all, thank you for your help.
Your snippet works and let WP Optimize correctly generate the cache, but unfortunately, I think the two plugins are incompatible in some other way.
If WP Optimize is enabled, the Bunny Fonts plugin doesn’t work. While as soon as i disable WP Optimize, the Bunny fonts plugin starts working again. Maybe something from WP Optimize is blocking it.
In the meantime, I also tried to send a message to the author of the Bunny Fonts plugin. Let’s see if I can retrieve some useful information.
-
This reply was modified 2 years, 2 months ago by
Cekker.
Hello,
If you find it difficult to get replies from the plugin developer it may be unsupported and as such it’s better to find an alternative solution.
Thread Starter
Cekker
(@cekker)
Hi! Unfortunately i got no replies yet, after 10 days. So probably as you said it will be better looking for some alternatives. Thank you anyway for trying to help me. If I ever get a response from the plugin author, I will share with you the suggested solution if it is helpful.
Regarding the GDPR. Plugins that deal with fonts should not store any of your user information (there is no need for them to). You only need the EU server if you are storing data. No plugin that deals with fonts should be doing this and therefore should be EU Compliant by default.
Thread Starter
Cekker
(@cekker)
Hi @vupdraft … i never had a feedback from the plugin dev, so i ended up switching to OMGF plugin, solving my problems. We can close the topic. Thank you.