' . esc_html__( 'enabled', 'w3-total-cache' ) : 'disabled">' . esc_html__( 'disabled', 'w3-total-cache' ) ) . '.' ), array( 'span' => array( 'class' => array(), ), ) ); ?>

array( 'type' => array(), 'name' => array(), 'value' => array(), ), ) ); ?> _config->is_preview() ) : ?> _page ), 'w3tc' ) ) ), array( 'input' => array( 'type' => array(), 'name' => array(), 'class' => array(), 'value' => array(), 'onclick' => array(), ), ) ); ?>

array( 'type' => array(), 'name' => array(), 'class' => array(), 'value' => array(), 'onclick' => array(), ), ) ); ?>

'pgcache.configuration_overloaded' ) ); ?>

'pgcache.enabled', 'control' => 'checkbox', 'checkbox_label' => esc_html__( 'Enable', 'w3-total-cache' ), 'description' => esc_html__( 'Caching pages will reduce the response time of your site and increase the scale of your web server.', 'w3-total-cache' ), ) ); Util_Ui::config_item( array( 'key' => 'pgcache.engine', 'control' => 'selectbox', 'selectbox_values' => array( 'file' => array( 'label' => esc_html__( 'Disk: Basic', 'w3-total-cache' ), 'optgroup' => 0, ), 'file_generic' => array( 'label' => esc_html__( 'Disk: Enhanced', 'w3-total-cache' ), 'optgroup' => 0, ), 'apc' => array( 'disabled' => ! Util_Installed::apc(), 'label' => esc_html__( 'Opcode: Alternative PHP Cache (APC / APCu)', 'w3-total-cache' ), 'optgroup' => 1, ), 'eaccelerator' => array( 'disabled' => ! Util_Installed::eaccelerator(), 'label' => esc_html__( 'Opcode: eAccelerator', 'w3-total-cache' ), 'optgroup' => 1, ), 'xcache' => array( 'disabled' => ! Util_Installed::xcache(), 'label' => esc_html__( 'Opcode: XCache', 'w3-total-cache' ), 'optgroup' => 1, ), 'wincache' => array( 'disabled' => ! Util_Installed::wincache(), 'label' => esc_html__( 'Opcode: WinCache', 'w3-total-cache' ), 'optgroup' => 1, ), 'memcached' => array( 'disabled' => ! Util_Installed::memcached(), 'label' => esc_html__( 'Memcached', 'w3-total-cache' ), 'optgroup' => 2, ), 'nginx_memcached' => array( 'disabled' => ! Util_Installed::memcached_memcached() || ! $is_pro, 'label' => esc_html__( 'Nginx + Memcached', 'w3-total-cache' ) . ( $is_pro ? '' : esc_html__( ' (available after upgrade)', 'w3-total-cache' ) ), 'optgroup' => 2, ), 'redis' => array( 'disabled' => ! Util_Installed::redis(), 'label' => esc_html__( 'Redis', 'w3-total-cache' ), 'optgroup' => 2, ), ), 'selectbox_optgroups' => array( esc_html__( 'Shared Server (disk enhanced is best):', 'w3-total-cache' ), esc_html__( 'Dedicated / Virtual Server:', 'w3-total-cache' ), esc_html__( 'Multiple Servers:', 'w3-total-cache' ), ), ) ); ?>
' ); ?> 'minify.configuration_overloaded' ) ); ?>

' . __( 'CSS', 'w3-total-cache' ) . '', '' . __( 'JS', 'w3-total-cache' ) . '', '' . __( 'HTML', 'w3-total-cache' ) . '' ) ); ?>

'minify.enabled', 'control' => 'checkbox', 'checkbox_label' => esc_html__( 'Enable', 'w3-total-cache' ), 'description' => wp_kses( sprintf( // translators: 1 opening HTML acronym tag, 2 closing HTML acronym tag, // translators: 3 opening HTML acronym tag, 4 closing HTML acronym tag, // translators: 5 opening HTML acronym tag, 6 closing HTML acronym tag. __( 'Minification can decrease file size of %1$sHTML%2$s, %3$sCSS%4$s, %5$sJS%6$s and feeds respectively by ~10%% on average.', 'w3-total-cache' ), '', '', '', '', '', '' ), array( 'acronym' => array( 'title' => array(), ), ) ), 'control_after' => ' ' . esc_html__( 'Learn more', 'w3-total-cache' ) . '', ) ); Util_Ui::config_item( array( 'key' => 'minify.auto', 'value' => ( $this->_config->get_boolean( 'minify.auto' ) ? 1 : 0 ), 'control' => 'radiogroup', 'radiogroup_values' => array( '1' => esc_html__( 'Auto', 'w3-total-cache' ), '0' => esc_html__( 'Manual', 'w3-total-cache' ), ), 'description' => esc_html__( 'Select manual mode to use fields on the minify settings tab to specify files to be minified, otherwise files will be minified automatically.', 'w3-total-cache' ), 'control_after' => ' ' . esc_html__( 'Learn more', 'w3-total-cache' ) . '', ) ); Util_Ui::config_item_engine( array( 'key' => 'minify.engine', 'control_after' => ' ' . esc_html__( 'Learn more', 'w3-total-cache' ) . '', ) ); Util_Ui::config_item( array( 'key' => 'minify.html.engine', 'control' => 'selectbox', 'selectbox_values' => array( 'html' => esc_html__( 'Minify (default)', 'w3-total-cache' ), 'htmltidy' => array( 'disabled' => ! Util_Installed::tidy(), 'label' => esc_html__( 'HTML Tidy', 'w3-total-cache' ), ), ), 'control_after' => ' ' . esc_html__( 'Learn more', 'w3-total-cache' ) . '', ) ); Util_Ui::config_item( array( 'key' => 'minify.js.engine', 'control' => 'selectbox', 'selectbox_values' => array( 'js' => esc_html__( 'JSMin (default)', 'w3-total-cache' ), 'googleccjs' => esc_html__( 'Google Closure Compiler (Web Service)', 'w3-total-cache' ), 'ccjs' => esc_html__( 'Google Closure Compiler (Local Java)', 'w3-total-cache' ), 'jsminplus' => esc_html__( 'Narcissus', 'w3-total-cache' ), 'yuijs' => esc_html__( 'YUI Compressor', 'w3-total-cache' ), ), ) ); Util_Ui::config_item( array( 'key' => 'minify.css.engine', 'control' => 'selectbox', 'selectbox_values' => array( 'css' => esc_html__( 'Minify (default)', 'w3-total-cache' ), 'csstidy' => array( 'label' => esc_html__( 'CSS Tidy', 'w3-total-cache' ), 'disabled' => ( version_compare( PHP_VERSION, '5.4.0', '<' ) ? true : false ), ), 'cssmin' => esc_html__( 'YUI Compressor (PHP)', 'w3-total-cache' ), 'yuicss' => esc_html__( 'YUI Compressor', 'w3-total-cache' ), ), ) ); ?>
' ); ?> 'dbcache.configuration_overloaded' ) ); ?>

'dbcache.enabled', 'control' => 'checkbox', 'checkbox_label' => esc_html__( 'Enable', 'w3-total-cache' ), 'description' => esc_html__( 'Caching database objects decreases the response time of your site. Best used if object caching is not possible.', 'w3-total-cache' ), ) ); Util_Ui::config_item_engine( array( 'key' => 'dbcache.engine' ) ); ?>
' ); ?> 'objectcache.configuration_overloaded' ) ); ?>

'objectcache.enabled', 'control' => 'checkbox', 'checkbox_label' => esc_html__( 'Enable', 'w3-total-cache' ), 'description' => wp_kses( sprintf( // translators: 1 opening HTML a tag to WordPress codex for WP Object Cache, 2 Opening HTML acronym tag, // translators: 3 closing HTML acronym tag, 4 closing HTML a tag. __( 'Object caching greatly increases performance for highly dynamic sites that use the %1$sObject Cache %2$sAPI%3$s%4$s.', 'w3-total-cache' ), '', '', '', '' ), array( 'acronym' => array( 'title' => array(), ), 'a' => array( 'href' => array(), 'target' => array(), ), ) ), ) ); Util_Ui::config_item_engine( array( 'key' => 'objectcache.engine' ) ); ?>
' ); ?> 'browsercache.configuration_overloaded' ) ); ?>

'browsercache.enabled', 'control' => 'checkbox', 'checkbox_label' => esc_html__( 'Enable', 'w3-total-cache' ), 'description' => wp_kses( sprintf( // translators: 1 opening HTML acronym tag, 2 closing HTML acronym tag. __( 'Enable %1$sHTTP%2$s compression and add headers to reduce server load and decrease file load time.', 'w3-total-cache' ), '', '' ), array( 'acronym' => array( 'title' => array(), ), ) ), ) ); ?>
'varnish.configuration_overloaded' ) ); ?>

', '', '', '' ), array( 'a' => array( 'href' => array(), ), ) ); ?>

checkbox( 'varnish.enabled' ); ?>

', '', '', '' ), array( 'acronym' => array( 'title' => array(), ), ) ); ?>

' ); ?>


', '' ), array( 'acronym' => array( 'title' => array(), ), ) ); ?>

', '' ), array( 'acronym' => array( 'title' => array(), ), ) ); ?>

', '' ), array( 'acronym' => array( 'title' => array(), ), ) ); ?>

', '' ), array( 'acronym' => array( 'title' => array(), ), ) ); ?>

_config->get_string( 'widget.pagespeed.access_token' ) ) ? $this->_config->get_string( 'widget.pagespeed.access_token' ) : '' ); $w3_pagespeed = new PageSpeed_Api( $access_token_json ); $site_id = Util_Http::generate_site_id(); $return_url = Util_Ui::admin_url( 'admin.php?page=w3tc_general' ); $w3tc_pagespeed_key = ! empty( $this->_config->get_string( 'widget.pagespeed.w3tc_pagespeed_key' ) ) ? $this->_config->get_string( 'widget.pagespeed.w3tc_pagespeed_key' ) : ''; $auth_url = $w3_pagespeed->client->createAuthUrl(); $new_gacode = Util_Request::get( 'w3tc_new_gacode' ); $new_w3tc_pagespeed_key = Util_Request::get( 'w3tc_new_w3tc_pagespeed_key' ); $authorize_error = Util_Request::get( 'w3tc_authorize_error' ); $deauthorize = Util_Request::get( 'w3tc_deauthorize' ); if ( ! empty( $new_gacode ) && ! empty( $new_w3tc_pagespeed_key ) ) { $response = json_decode( $w3_pagespeed->process_authorization_response( $new_gacode, $new_w3tc_pagespeed_key ), true ); if ( isset( $response['error']['code'] ) && 200 !== $response['error']['code'] ) { $response_error = sprintf( // translators: 1 Request response code, 2 Error message. __( 'Response Code: %1$s
Response Message: %2$s', 'w3-total-cache' ), ! empty( $response['error']['code'] ) ? $response['error']['code'] : 'N/A', ! empty( $response['error']['message'] ) ? $response['error']['message'] : 'N/A' ); update_option( 'w3tcps_authorize_fail', __( 'Google PageSpeed Insights API authorization failed.', 'w3-total-cache' ) ); update_option( 'w3tcps_authorize_fail_message', $response_error ); } elseif ( ! empty( $response['refresh_token'] ) ) { update_option( 'w3tcps_authorize_success', __( 'Google PageSpeed Insights API authorization successfull.', 'w3-total-cache' ) ); } else { update_option( 'w3tcps_authorize_fail', __( 'Google PageSpeed Insights API authorization failed.', 'w3-total-cache' ) ); update_option( 'w3tcps_authorize_fail_message', __( 'Missing refresh token.', 'w3-totoal-cache' ) ); } wp_safe_redirect( $return_url ); exit; } elseif ( $deauthorize ) { $w3_pagespeed->reset(); update_option( 'w3tcps_authorize_success', __( 'Google PageSpeed Insights API authorization successfully reset.', 'w3-total-cache' ) ); wp_safe_redirect( $return_url ); exit; } elseif ( ! empty( $authorize_error ) ) { $authorize_error = json_decode( $authorize_error ); if ( 'authorize-in-missing-site-id' === $authorize_error->error->id ) { $message = __( 'Unique site ID missing for authorize request!', 'w3-total-cache' ); } elseif ( 'authorize-in-missing-auth-url' === $authorize_error->error->id ) { $message = __( 'Authorize URL missing for authorize request!', 'w3-total-cache' ); } elseif ( 'authorize-in-missing-return-url' === $authorize_error->error->id ) { $message = __( 'Return URL missing for authorize request!', 'w3-total-cache' ); } elseif ( 'authorize-in-failed' === $authorize_error->error->id ) { $message = __( 'Failed to process authorize request!', 'w3-total-cache' ); } if ( 'authorize-out-code-missing' === $authorize_error->error->id ) { $message = __( 'No authorize code returned to W3-API from Google!', 'w3-total-cache' ); } elseif ( 'authorize-out-w3tc-pagespeed-key-missing' === $authorize_error->error->id ) { $message = __( 'No W3Key return to W3-API from Google!', 'w3-total-cache' ); } elseif ( 'authorize-out-not-found' === $authorize_error->error->id ) { $message = __( 'No W3-API matching record found during Google authorization return processing!', 'w3-total-cache' ); } update_option( 'w3tcps_authorize_fail', __( 'Google PageSpeed Insights API authorization failed.', 'w3-total-cache' ) ); update_option( 'w3tcps_authorize_fail_message', $message ); wp_safe_redirect( $return_url ); exit; } ?> client->getAccessToken() ) ? $w3_pagespeed->client->getAccessToken() : '' ); if ( ! $w3_pagespeed->client->isAccessTokenExpired() && ! empty( $access_token_json ) ) { ?> 'widget.pagespeed.enabled', 'control' => 'checkbox', 'checkbox_label' => __( 'Enable Google PageSpeed dashboard widget', 'w3-total-cache' ), 'description' => __( 'Display Google PageSpeed results on the WordPress dashboard.', 'w3-total-cache' ), 'label_class' => 'w3tc_single_column', ) ); ?>

' . esc_html__( 'upgrading', 'w3-total-cache' ) . '' ), array( 'a' => array( 'class' => array(), 'data-src' => array(), 'href' => array(), ), ) ); ?>

'docroot_fix.enable', 'control' => 'checkbox', 'checkbox_label' => esc_html__( 'Fix document root path', 'w3-total-cache' ), 'label_class' => 'w3tc_single_column', 'description' => sprintf( // translators: 1: WordPress ABSPATH value, 2: Server document root value. esc_html__( 'Fix incorrect server document root path. Uses the WordPress ABSPATH ("%1$s") in place of the current server document root ("%2$s").', 'w3-total-cache' ), esc_attr( untrailingslashit( ABSPATH ) ), esc_attr( ! empty( $_SERVER['DOCUMENT_ROOT'] ) ? esc_url_raw( wp_unslash( $_SERVER['DOCUMENT_ROOT'] ) ) : '' ) ), ) ); Util_Ui::config_item( array( 'key' => 'common.track_usage', 'control' => 'checkbox', 'checkbox_label' => esc_html__( 'Anonymously track usage to improve product quality', 'w3-total-cache' ), 'label_class' => 'w3tc_single_column', ) ); ?>
checkbox( 'common.force_master' ); ?>

/>

/>

', '' ), array( 'a' => array( 'href' => array(), ), ) ); ?>

/>

', '' ), array( 'acronym' => array( 'title' => array(), ), ) ); ?>

/>

', '' ), array( 'acronym' => array( 'title' => array(), ), ) ); ?>

checkbox_debug( 'pgcache.debug' ); ?>
checkbox_debug( 'minify.debug' ); ?>
checkbox_debug( 'dbcache.debug' ); ?>
checkbox_debug( 'objectcache.debug' ); ?>
_config ) ) : ?> checkbox_debug( array( 'fragmentcache', 'debug' ) ); ?>
checkbox_debug( 'cdn.debug' ); ?>
checkbox_debug( 'cdnfsd.debug' ); ?>
checkbox_debug( 'varnish.debug' ); ?>
checkbox_debug( 'cluster.messagebus.debug' ); ?>

', '' ), array( 'acronym' => array( 'title' => array(), ), ) ); ?>

checkbox_debug_pro( 'pgcache.debug_purge', __( 'Page Cache Purge Log', 'w3-total-cache' ), ' (' . __( 'view log', 'w3-total-cache' ) . ')' ); ?>
checkbox_debug_pro( 'dbcache.debug_purge', __( 'Database Cache Purge Log', 'w3-total-cache' ), ' (' . __( 'view log', 'w3-total-cache' ) . ')' ); ?>
checkbox_debug_pro( 'objectcache.debug_purge', __( 'Object Cache Purge Log', 'w3-total-cache' ), ' (' . __( 'view log', 'w3-total-cache' ) . ')' ); ?>
array( 'type' => array(), 'name' => array(), 'value' => array(), ), ) ); ?>