</label><br /> <?php $this->checkbox_debug('varnish.debug'); ?> <?php w3_e_config_label('varnish.debug', 'general'); ?> </label><br /> <?php if (w3_is_enterprise()) { ?> <?php $this->checkbox_debug('cluster.messagebus.debug'); ?> <?php w3_e_config_label('cluster.messagebus.debug', 'general'); ?> </label><br /> <?php } ?> <span class="description"><?php _e('If selected, detailed caching information will be appear at the end of each page in a <acronym title="Hypertext Markup Language">HTML</acronym> comment. View a page\'s source code to review.', 'w3-total-cache'); ?> </span> </td> </tr> </table> <p class="submit"> <?php
<?php if (!defined('W3TC')) { die; } $this->checkbox('minify.htmltidy.options.clean', false, 'html_'); ?> <?php w3_e_config_label('minify.htmltidy.options.clean'); ?> </label><br /> <?php $this->checkbox('minify.htmltidy.options.hide-comments', false, 'html_'); ?> <?php w3_e_config_label('minify.htmltidy.options.hide-comments'); ?> </label><br />
<tr> <th> </th> <td> <input class="minifier_test button js_enabled {type: 'yuijs', nonce: '<?php echo wp_create_nonce('w3tc'); ?> '}" type="button" value="<?php _e('Test YUI Compressor', 'w3-total-cache'); ?> " /> <span class="minifier_test_status w3tc-status w3tc-process"></span> </td> </tr> <tr> <th><label for="minify_yuijs_options_line-break"><?php w3_e_config_label('minify.yuijs.options.line-break'); ?> </label></th> <td> <input id="minify_yuijs_options_line-break" class="js_enabled" type="text" <?php $this->sealing_disabled('minify'); ?> name="minify.yuijs.options.line-break" value="<?php echo esc_attr($this->_config->get_integer('minify.yuijs.options.line-break')); ?> " size="8" style="text-align: right;" /> <?php _e('symbols (set to 0 to disable)', 'w3-total-cache'); ?> </td> </tr>
w3_e_config_label('browsercache.other.replace'); ?> </label> <br /><span class="description"><?php _e('Whenever settings are changed, a new query string will be generated and appended to objects allowing the new policy to be applied.', 'w3-total-cache'); ?> </span> </th> </tr> <tr> <th colspan="2"> <?php $this->checkbox('browsercache.other.nocookies'); ?> <?php w3_e_config_label('browsercache.other.nocookies'); ?> </label> <br /><span class="description"><?php _e('Removes Set-Cookie header for responses.', 'w3-total-cache'); ?> </span> </th> </tr> </table> <p class="submit"> <?php echo $this->nonce_field('w3tc'); ?> <input type="submit" name="w3tc_save_options" class="w3tc-button-save button-primary" value="<?php
<td> <?php w3_ui_element('password', 'cloudflare.key', $name, w3tc_get_extension_config('cloudflare', 'key'), w3_extension_is_sealed('cloudflare')); ?> (<a href="https://www.cloudflare.com/my-account.html"><?php _e('find it here', 'w3-total-cache'); ?> </a>) </td> </tr> <tr> <?php list($name, $id) = w3tc_get_name_and_id('cloudflare', 'zone'); ?> <th><?php w3_e_config_label('cloudflare.zone', 'general'); ?> </th> <td> <?php w3_ui_element('textbox', 'cloudflare.zone', $name, w3tc_get_extension_config('cloudflare', 'zone'), w3_extension_is_sealed('cloudflare')); ?> </td> </tr> <tr> <th><?php _e('Security level:', 'w3-total-cache'); ?> </th> <td> <input type="hidden" name="cloudflare_sec_lvl_old" value="<?php
<tr> <th><?php w3_e_config_label('fragmentcache.enabled', 'general'); ?> </th> <td> <?php $this->checkbox('fragmentcache.enabled'); ?> <strong>Enable</strong></label> <br /><span class="description">Fragment caching greatly increases performance for highly themes and plugins that use the <a href="http://codex.wordpress.org/Transients_API" target="_blank">Transient <acronym title="Application Programming Interface">API</acronym></a>.</span> </td> </tr> <tr> <th><?php w3_e_config_label('fragmentcache.engine', 'general'); ?> </th> <td> <select name="fragmentcache.engine" <?php $this->sealing_disabled('fragmentcache'); ?> > <optgroup label="Shared Server:"> <option value="file" <?php selected($this->_config->get_string('fragmentcache.engine'), 'file'); ?> >Disk</option> </optgroup> <optgroup label="Dedicated / Virtual Server:"> <option value="apc"<?php
</td> </tr> <?php if (w3_is_nginx() && $this->_config->get_string('pgcache.engine') == 'file_generic') { ?> <tr> <th><label><?php w3_e_config_label('pgcache.cache.nginx_handle_xml'); ?> </label></th> <td> <?php $this->checkbox('pgcache.cache.nginx_handle_xml', true); ?> <?php w3_e_config_label('pgcache.cache.nginx_handle_xml'); ?> </label><br /> <span class="description"><?php _e('Return correct Content-Type header for XML files. Slows down cache engine.', 'w3-total-cache'); ?> </span> </td> </tr> <?php } ?> </table> <p class="submit"> <?php
<?php if (!defined('W3TC')) { die; } $this->checkbox('minify.yuijs.options.nomunge', false, 'js_'); ?> <?php w3_e_config_label('minify.yuijs.options.nomunge'); ?> </label><br /> <?php $this->checkbox('minify.yuijs.options.preserve-semi', false, 'js_'); ?> <?php w3_e_config_label('minify.yuijs.options.preserve-semi'); ?> </label><br /> <?php $this->checkbox('minify.yuijs.options.disable-optimizations', false, 'js_'); ?> <?php w3_e_config_label('minify.yuijs.options.disable-optimizations'); ?> </label><br />
foreach ($css_levels as $_css_level) { ?> <option value="<?php echo esc_attr($_css_level); ?> " <?php selected($css_level, $_css_level); ?> ><?php echo $_css_level; ?> </option> <?php } ?> </select><br /> <?php $this->checkbox('minify.csstidy.options.preserve_css', false, 'css_'); ?> <?php w3_e_config_label('minify.csstidy.options.preserve_css'); ?> </label><br /> <?php $this->checkbox('minify.csstidy.options.timestamp', false, 'css_'); ?> <?php w3_e_config_label('minify.csstidy.options.timestamp'); ?> </label><br />
<?php if (!defined('W3TC')) { die; } ?> <tr> <th><label for="minify_htmltidy_options_wrap"><?php w3_e_config_label('minify.htmltidy.options.wrap'); ?> </label></th> <td> <input id="minify_htmltidy_options_wrap" class="html_enabled" type="text" <?php $this->sealing_disabled('minify'); ?> name="minify.htmltidy.options.wrap" value="<?php echo esc_attr($this->_config->get_integer('minify.htmltidy.options.wrap')); ?> " size="8" style="text-align: right;" /> _e('symbols (set to 0 to disable)', 'w3-total-cache'); ?> </td> </tr>
?> name="fragmentcache.file.gc" value="<?php echo esc_attr($this->_config->get_integer('fragmentcache.file.gc')); ?> " size="8" /> <?php _e('seconds', 'w3-total-cache'); ?> <br /><span class="description"><?php _e('If caching to disk, specify how frequently expired cache data is removed. For busy sites, a lower value is best.', 'w3-total-cache'); ?> </span> </td> </tr> <tr> <th><label for="fragmentcache_groups"><?php w3_e_config_label('fragmentcache.groups'); ?> </label></th> <td> <textarea id="fragmentcache_groups" name="fragmentcache.groups" <?php $this->sealing_disabled('fragmentcache'); ?> cols="40" rows="5"><?php echo esc_textarea(implode("\r\n", $this->_config->get_array('fragmentcache.groups'))); ?> </textarea><br /> <span class="description"><?php _e('Specify fragment groups that should be managed by W3 Total Cache. Enter one action per line comma delimited, e.g. (group, action1, action2). Include the prefix used for a transient by a theme or plugin.', 'w3-total-cache'); ?> </span>
<?php if (!defined('W3TC')) { die; } $this->checkbox('minify.html.strip.crlf', false, 'html_'); ?> <?php w3_e_config_label('minify.html.strip.crlf'); ?> </label><br />
?> /> <p><span class="description"> <?php _e('Enable this to dynamically set proper application name. (See New Relic <a href="https://newrelic.com/docs/php/per-directory-settings">Per-directory settings</a> for other methods.', 'w3-total-cache'); ?> </span> </p> <?php } ?> </td> </tr> <tr> <th><label for="newrelic_enable_xmit"><?php w3_e_config_label('newrelic.enable_xmit'); ?> </label></th> <td><input name="" type="hidden" value="0" /> <input id="newrelic_enable_xmit" name="newrelic.enable_xmit" type="checkbox" value="1" <?php checked($this->_config->get_boolean('newrelic.enable_xmit')); ?> <?php $this->sealing_disabled('newrelic'); ?> /> <p><span class="description"><?php _e(sprintf('Enable this if you want to record the metric and transaction data (until the name is changed using PHP function), specify a value of true for this argument to make the agent send the transaction to the daemon. There is a slight performance impact as it takes a few milliseconds for the agent to dump its data. <em>From %s</em>', '<a href="https://newrelic.com/docs/php/the-php-api">New Relic PHP API doc</a>'), 'w3-total-cache'); ?> </span></p> </td>
<br /><span class="description"><?php _e('Groups that should not be cached.', 'w3-total-cache'); ?> </span> </td> </tr> <?php if ($this->_config->get_boolean('cluster.messagebus.enabled')) { ?> <tr> <th colspan="2"> <?php $this->checkbox('objectcache.purge.all'); ?> <?php w3_e_config_label('objectcache.purge.all'); ?> </label> <br /><span class="description"><?php _e('Enabling this option will increase load on server on certain actions but will guarantee that the Object Cache is always clean and contains latest changes. <em>Enable if you are experiencing issues with options displaying wrong value/state (checkboxes etc).</em>', 'w3-total-cache'); ?> </span> </th> </tr> <?php } ?> </table>
" <?php selected($case_properties, $case_properties_key); ?> ><?php echo $case_properties_name; ?> </option> <?php } ?> </select> </td> </tr> <tr> <th><label for="minify_csstidy_options_merge_selectors"><?php w3_e_config_label('minify.csstidy.options.merge_selectors'); ?> </label></th> <td> <select id="minify_csstidy_options_merge_selectors" class="css_enabled" <?php $this->sealing_disabled('minify'); ?> name="minify.csstidy.options.merge_selectors"> <?php foreach ($merge_selectors_values as $merge_selectors_key => $merge_selectors_name) { ?> <option value="<?php echo esc_attr($merge_selectors_key); ?> " <?php
<tr> <th> </th> <td> <input class="minifier_test js_enabled button {type: 'ccjs', nonce: '<?php echo wp_create_nonce('w3tc'); ?> '}" type="button" value="<?php _e('Test Closure Compiler', 'w3-total-cache'); ?> " /> <span class="minifier_test_status w3tc-status w3tc-process"></span> </td> </tr> <tr> <th><label for="minify_ccjs_options_compilation_level"><?php w3_e_config_label('minify.ccjs.options.compilation_level'); ?> </label></th> <td> <select id="minify_ccjs_options_compilation_level" class="js_enabled" name="minify.ccjs.options.compilation_level" <?php $this->sealing_disabled('minify'); ?> > <?php foreach ($compilation_levels as $compilation_level_key => $compilation_level_name) { ?> <option value="<?php echo esc_attr($compilation_level_key); ?> " <?php
<?php $this->sealing_disabled('cdn'); ?> rows="5"><?php echo esc_textarea(implode("\r\n", $this->_config->get_array('cdn.reject.ua'))); ?> </textarea><br /> <span class="description"><?php _e('Specify user agents that should not access files hosted with the <acronym title="Content Delivery Network">CDN</acronym>.', 'w3-total-cache'); ?> </span> </td> </tr> <tr> <th><label for="cdn_reject_files"><?php w3_e_config_label('cdn.reject.files'); ?> </label></th> <td> <textarea id="cdn_reject_files" name="cdn.reject.files" <?php $this->sealing_disabled('cdn'); ?> cols="40" rows="5"><?php echo esc_textarea(implode("\r\n", $this->_config->get_array('cdn.reject.files'))); ?> </textarea><br /> <span class="description"><?php _e('Specify the path of files that should not use the <acronym title="Content Delivery Network">CDN</acronym>.', 'w3-total-cache'); ?> </span>
<?php if (!defined('W3TC')) { die; } ?> <input type="hidden" name="minify.ccjs.options.formatting" value="" /> <label> <input class="js_enabled" type="checkbox" name="minify.ccjs.options.formatting" value="pretty_print" <?php checked($this->_config->get_string('minify.ccjs.options.formatting'), 'pretty_print'); ?> <?php $this->sealing_disabled('minify'); ?> /> <?php w3_e_config_label('minify.ccjs.options.formatting'); ?> </label> <br />
cols="40" rows="5"><?php echo esc_textarea(implode("\r\n", $this->_config->get_array('minify.reject.ua'))); ?> </textarea><br /> <span class="description"><?php _e('Specify user agents that will never receive minified content.', 'w3-total-cache'); ?> </span> </td> </tr> <?php if ($auto) { ?> <tr> <th><label for="minify_cache_files"><?php w3_e_config_label('minify.cache.files'); ?> </label></th> <td> <textarea id="minify_cache_files" name="minify.cache.files" <?php $this->sealing_disabled('minify'); ?> cols="40" rows="5"><?php echo esc_textarea(implode("\r\n", $this->_config->get_array('minify.cache.files'))); ?> </textarea><br /> <span class="description"><?php _e('Specify external files/libraries that should be combined.', 'w3-total-cache'); ?> </span>
<?php if (!defined('W3TC')) { die; } $this->checkbox('minify.css.strip.comments', false, 'css_'); ?> <?php w3_e_config_label('minify.css.strip.comments'); ?> </label><br /> <?php $this->checkbox('minify.css.strip.crlf', false, 'css_'); ?> <?php w3_e_config_label('minify.css.strip.crlf'); ?> </label><br />
<?php $this->sealing_disabled('dbcache'); ?> cols="40" rows="5"><?php echo esc_textarea(implode("\r\n", $this->_config->get_array('dbcache.reject.sql'))); ?> </textarea><br /> <span class="description"><?php _e('Do not cache queries that contain these terms. Any entered prefix (set in wp-config.php) will be replaced with current database prefix (default: wp_). Query stems can be identified using debug mode.', 'w3-total-cache'); ?> </span> </td> </tr> <tr> <th><label for="dbcache_reject_words"><?php w3_e_config_label('dbcache.reject.words'); ?> </label></th> <td> <textarea id="dbcache_reject_words" name="dbcache.reject.words" <?php $this->sealing_disabled('dbcache'); ?> cols="40" rows="5"><?php echo esc_textarea(implode("\r\n", $this->_config->get_array('dbcache.reject.words'))); ?> </textarea><br /> <span class="description"><?php _e('Do not cache queries that contain these words or regular expressions.', 'w3-total-cache'); ?> </span>