Hi,
Thank you for this but this is correct (it’s not advised that you use any two plugins to do the same functions such as caching or lazy load)
It’s not uncommon for caching plugins to have notices like this and we would not recommend that you use both plugins either
I only activate your brilliant database optimisation functions. I leave all other functions to WP-Rocket. It’s been a blast. Thanks
Same incompatible error message now appearing for me too. Only used WP-Optimise for compressing images, and cleaning database. Never overlapped functions with wp-rocket. Don’t want to have to deactivate
@oriver @opfoxtuck – could one of you take a screenshot.
Does it force you to deactivate or just suggest it?
Thank you. At the moment it looks like it’s just a message prompting the user to deactivate. You should be fine continuing to use WPO for the DB optimising and image compression
If you look at the code in the function, all it does is put WPO in a list and put generate that notice suggesting you to deactivate
In inc/admin/ui/notices.php
Function rocket_plugins_to_deactivate()
- Add wp-optimize to the plugins array, using this key value pair:
'wp-optimize' => 'wp-optimize/wp-optimize.php'
It does not have any capability other than this.
Thanks! I also use WPO for my db optimization — since I’m under the UpdraftPlus and UpdraftCentral umbrella. The WP Rocket warning is a little scary because it isn’t specific as to what isn’t compatible. Hopefully, just WPO’s caching…
I think the message likely related to both of the plugins offering caching.
Add the code below to your function.php of your child theme. To silence the message without modifying the actual plugin.
/**
- Remove WP Optimize from WP Rocket’s list of plugins to deactivate.
*
- @param array $plugins List of plugins that WP Rocket recommends to deactivate.
- @return array Modified list of plugins.
*/
function remove_wp_optimize_from_rocket_warning( $plugins ) {
if ( isset( $plugins[‘wp-optimize’] ) ) {
unset( $plugins[‘wp-optimize’] );
}
return $plugins;
}
add_filter( ‘rocket_plugins_to_deactivate’, ‘remove_wp_optimize_from_rocket_warning’ );
The issue is still apparent even on the latest WP-rocket release 🙁
WP-rocket for cache.
WP-optimize for database optimizations.