|
|
' . esc_html__( 'Report it privately', 'gorilla-cache' ) . ' ' . esc_html__( '(opens in a new tab)', 'gorilla-cache' ) . ''
),
array(
'a' => array(
'href' => true,
'target' => true,
'rel' => true,
),
'span' => array( 'class' => true ),
)
);
?>
$gorilla_cache_plugin_data['Version'],
'Cache' => $gorilla_cache_dbg_state['verdict'] . ' (' . $gorilla_cache_dbg_state['reason'] . ( '' !== (string) $gorilla_cache_dbg_state['name'] ? ': ' . $gorilla_cache_dbg_state['name'] : '' ) . ')' . ( GorillaCache_Installer::is_caching() ? ', caching' : ', not caching' ),
'Note' => '' !== (string) $gorilla_cache_dbg_state['note'] ? (string) $gorilla_cache_dbg_state['note'] : 'none',
'WP_CACHE' => defined( 'WP_CACHE' ) ? ( WP_CACHE ? 'true' : 'false' ) : 'not defined',
'wp-config.php' => (string) $gorilla_cache_dbg_state['wp_config'],
'advanced-cache.php' => GorillaCache_Installer::dropin_state() . ( 'foreign' === GorillaCache_Installer::dropin_state() && '' !== GorillaCache_Environment::dropin_owner() ? ' (' . GorillaCache_Environment::dropin_owner() . ')' : '' ),
'Drop-in and config' => GorillaCache_Installer::pieces_in_place() ? 'in place' : 'missing or out of date',
'Lifespan' => (int) $gorilla_cache_dbg_state['lifespan'] . ' s',
'Phone copies' => ! empty( $gorilla_cache_dbg_state['mobile'] ) ? 'yes' : 'no',
'Warming' => GorillaCache_Preload::summary() . ( in_array( GorillaCache_Preload::summary(), array( 'warming', 'done', 'paused' ), true ) ? ' (' . (int) $gorilla_cache_dbg_preload['done'] . '/' . (int) $gorilla_cache_dbg_preload['total'] . ')' : '' ) . ( ! empty( $gorilla_cache_dbg_preload['blocked'] ) ? ', the site answered ' . (int) $gorilla_cache_dbg_preload['blocked'] : '' ),
'Last clear' => ! empty( $gorilla_cache_dbg_state['last_clear']['time'] ) ? gmdate( 'Y-m-d H:i', (int) $gorilla_cache_dbg_state['last_clear']['time'] ) . ' UTC, ' . $gorilla_cache_dbg_state['last_clear']['cause'] : 'never',
'Stores found' => implode( ', ', GorillaCache_Registry::detected_names() ) ? implode( ', ', GorillaCache_Registry::detected_names() ) : 'none',
'Cache-related plugins' => array() !== $gorilla_cache_dbg_cache ? implode( ', ', $gorilla_cache_dbg_cache ) : 'none',
'WP-Cron' => defined( 'DISABLE_WP_CRON' ) && DISABLE_WP_CRON ? 'DISABLE_WP_CRON set' : 'default',
'WordPress Version' => get_bloginfo( 'version' ),
'PHP Version' => PHP_VERSION,
'Server Software' => isset( $_SERVER['SERVER_SOFTWARE'] ) ? sanitize_text_field( wp_unslash( $_SERVER['SERVER_SOFTWARE'] ) ) : 'Unknown',
'MySQL Version' => $GLOBALS['wpdb']->db_version(),
'WP Multisite' => is_multisite() ? 'Yes' : 'No',
'WP Memory Limit' => WP_MEMORY_LIMIT,
'WP Debug Mode' => defined( 'WP_DEBUG' ) && WP_DEBUG ? 'Enabled' : 'Disabled',
'Active Theme' => wp_get_theme()->get( 'Name' ) . ' ' . wp_get_theme()->get( 'Version' ),
'Active Plugins' => count( get_option( 'active_plugins', array() ) ),
'Home URL' => home_url(),
'Site URL' => site_url(),
);
$gorilla_cache_debug_text = '';
foreach ( $gorilla_cache_debug_info as $gorilla_cache_label => $gorilla_cache_value ) {
$gorilla_cache_debug_text .= $gorilla_cache_label . ': ' . $gorilla_cache_value . "\n";
}
?>