is_writable( $page_cache['cache_dir'] ) ? esc_html__( 'Writable', 'solid-performance' ) : esc_html__( 'Not Writable', 'solid-performance' ); $debug_mode_status = $page_cache['debug'] ? esc_html__( 'Enabled', 'solid-performance' ) : esc_html__( 'Disabled', 'solid-performance' ); $exclusion_count = count( $page_cache['exclusions'] ); $info['solid-performance'] = [ 'label' => esc_html__( 'Solid Performance', 'solid-performance' ), 'fields' => [ 'page_cache_status' => [ 'label' => esc_html__( 'Page Cache', 'solid-performance' ), 'value' => $page_cache_status, 'debug' => strtolower( $page_cache_status ), ], 'cache_directory' => [ 'label' => esc_html__( 'Cache Directory', 'solid-performance' ), 'value' => $page_cache['cache_dir'], 'debug' => $page_cache['cache_dir'], ], 'cache_directory_writable' => [ 'label' => esc_html__( 'Cache Directory Permissions', 'solid-performance' ), 'value' => $cache_dir_writeable, 'debug' => strtolower( $cache_dir_writeable ), ], 'debug_mode' => [ 'label' => esc_html__( 'Debug Mode', 'solid-performance' ), 'value' => $debug_mode_status, 'debug' => strtolower( $debug_mode_status ), ], 'exclusion_count' => [ 'label' => esc_html__( 'Number of custom exclusions', 'solid-performance' ), 'value' => $exclusion_count, ], ], ]; return $info; } }