'Redis Object Cache', 'object-cache-pro/object-cache-pro.php' => 'Object Cache Pro', 'docket-cache/docket-cache.php' => 'Docket Cache', ); $active_plugin = null; foreach ( $object_cache_plugins as $plugin_path => $plugin_name ) { if ( Plugin_Theme_Helper::is_plugin_active( $plugin_path ) ) { $active_plugin = $plugin_name; $using_external = true; break; } } $details = array( 'has_object_cache' => $has_object_cache, 'cache_type' => $cache_type, 'active_plugin' => $active_plugin, ); if ( $using_external ) { $cache_name = $active_plugin ?: $cache_type; return static::pass( sprintf( /* translators: %s: cache type/plugin name */ \__( 'Persistent object caching is enabled using %s. Database queries are being cached, reducing load and speeding up your site.', '0-day-analytics' ), $cache_name ), $details ); } if ( $has_object_cache ) { return static::warning( \__( 'An object cache drop-in is present, but we couldn\'t determine if it\'s using a persistent cache backend like Redis or Memcached.', '0-day-analytics' ), \__( 'Verify your object caching is properly configured. Check with your hosting provider if Redis or Memcached is available.', '0-day-analytics' ), $details ); } return static::fail( 'medium', \__( 'Your site is using WordPress\'s built-in object cache, which only lasts for the duration of a single page request. Persistent object caching (like Redis) can significantly speed up database-heavy sites.', '0-day-analytics' ), \__( 'Enable persistent object caching with Redis or Memcached. Check if your hosting provider offers this feature, or install a plugin like Redis Object Cache.', '0-day-analytics' ), $details ); } } }