PluginProbe
xSpeed Cache: AI-Powered Performance Hub with MCP, Caching & CDN / 1.4.1
xSpeed Cache: AI-Powered Performance Hub with MCP, Caching & CDN v1.4.1
1.4.1 1.4.0 1.3.7 1.3.6 1.3.5 1.3.4 1.3.3 1.3.2 1.3.1 1.3.0 1.2.4 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 All 35 releases
← All changes | includes/class-migration.php +6 -2 1.3.7 → 1.4.1 View file →
@@ -744,10 +744,14 @@
744 744 if ( ! class_exists( __NAMESPACE__ . '\\Object_Cache' ) ) {
745 745 return $result;
746 746 }
747 747
748 - $opts = (array) Settings_Manager::get( 'object-cache' );
749 - $state = Object_Cache::enable( $opts );
748 + $opts = (array) Settings_Manager::get( 'object-cache' );
749 + // An import IS the user switching away from the source plugin, so it
750 + // takes the same switch path: the source's own object cache is turned
751 + // off through its settings (or the plugin deactivated) before ours goes
752 + // in, instead of being overwritten while it stays on. (#686)
753 + $state = Object_Cache::enable( $opts, array( 'takeover' => true ) );
750 754
751 755 $result['ok'] = ! empty( $state['ok'] );
752 756 $result['object_cache_ready'] = ! empty( $state['ok'] );
753 757 if ( empty( $state['ok'] ) ) {