PluginProbe
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance / 4.5.3
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance v4.5.3
4.7.0 4.6.1 4.6.0 4.5.5 4.5.4 4.5.3 4.5.2 3.2.20 3.2.21 3.2.22 3.2.3 3.2.5 3.2.6 3.2.7 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.7.0 3.7.1 All 111 releases
wp-optimize / templates / cache / page-cache-advanced.php

page-cache-advanced.php in WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance 4.5.3, at templates/cache/page-cache-advanced.php

147 lines 7.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php if (!defined('ABSPATH')) die('No direct access allowed'); ?>
2
3 <h3 class="wpo-first-child"><?php esc_html_e('Cache Gravatars', 'wp-optimize'); ?></h3>
4
5 <div class="wpo-fieldgroup cache-options">
6 <div class="wpo-fieldgroup__subgroup">
7 <label for="wpo-show-avatars">
8 <input type="checkbox" value="true" disabled <?php checked(get_option('show_avatars'), 1); ?>>
9 <?php esc_html_e('Show avatars.', 'wp-optimize'); ?>
10 </label>
11 <span tabindex="0" data-tooltip="<?php esc_attr_e('Disable or enable avatars for users.', 'wp-optimize');?>"><span class="dashicons dashicons-editor-help"></span> </span>
12 </div>
13 <div class="wpo-fieldgroup__subgroup" id="wpo-host-gravatars-locally-container">
14 <label for="wpo-host-gravatars-locally">
15 <input type="checkbox" value="true" disabled>
16 <?php esc_html_e('Host gravatars locally.', 'wp-optimize'); ?>
17 </label>
18 <span tabindex="0" data-tooltip="<?php esc_attr_e('Host gravatars locally to reduce http requests and enhanced privacy.', 'wp-optimize');?>"><span class="dashicons dashicons-editor-help"></span> </span>
19 </div>
20 <p><a href="<?php echo esc_url(WP_Optimize()->premium_version_link); ?>&utm_content=host-gravatars-locally" target="_blank"><?php esc_html_e('Upgrade to WP-Optimize Premium to unlock this feature.', 'wp-optimize'); ?></a></p>
21 </div>
22
23 <h3 class="wpo-first-child"><?php esc_html_e('URLs to include in caching', 'wp-optimize'); ?></h3>
24
25 <div class="wpo-fieldgroup">
26 <div class="wpo-fieldgroup__subgroup">
27 <label for="cache_specific_urls_only">
28 <input name="cache_specific_urls_only" id="cache_specific_urls_only" class="cache-settings" type="checkbox" value="true" disabled>
29 <?php esc_html_e('Cache Specific URLs Only', 'wp-optimize'); ?>
30 </label>
31 <span tabindex="0" data-tooltip="<?php esc_attr_e('Enable or disable caching for specific URLs only.', 'wp-optimize');?>"><span class="dashicons dashicons-editor-help"></span> </span>
32 </div>
33 <p><a href="<?php echo esc_url(WP_Optimize()->premium_version_link); ?>&utm_content=cache_ignore_query_variables" target="_blank"><?php esc_html_e('Upgrade to WP-Optimize Premium to unlock this feature.', 'wp-optimize'); ?></a></p>
34 <p>
35 <?php // Translators: %s is an example path. ?>
36 <label for="cache_include_urls"><?php echo wp_kses_post(sprintf(__('List paths (e.g. %s) that should be cached (one per line)', 'wp-optimize'), '<code>'.esc_html_x('/sample-page', 'an example path', 'wp-optimize').'</code>')); ?> </label>
37 <textarea name="cache_include_urls" id="cache_include_urls" class="cache-settings" placeholder="/members/*" disabled></textarea>
38 </p>
39
40 <span>
41 <?php
42 esc_html_e('Use the wildcard * to include child URLs.', 'wp-optimize');
43 echo ' ';
44 // Translators: %s are examples of path using the wildcard *
45 echo wp_kses_post(sprintf(_x('e.g. %1$s or %2$s', '%s are examples of path using the wildcard *', 'wp-optimize'), '<code>'.esc_html_x('/shop/*', 'an example path with the wildcard (*)', 'wp-optimize').'</code>', '<code>'.esc_html_x('*sample-path*', 'a second example path using the wildcard (*) twice', 'wp-optimize').'</code>'));
46 ?>
47 </span>
48 </div>
49
50 <h3 class="wpo-first-child"><?php esc_html_e('URLs to exclude from caching', 'wp-optimize'); ?></h3>
51
52 <div class="wpo-fieldgroup">
53
54 <p>
55 <label for="cache_exception_urls">
56 <?php
57 // translators: %s is an example path
58 echo wp_kses_post(sprintf(__('List paths (e.g. %s) that should not be cached (one per line)', 'wp-optimize'), '<code>'.esc_html_x('/product/green-beans', 'an example path', 'wp-optimize').'</code>'));
59 ?>
60 </label>
61 <textarea name="cache_exception_urls" id="cache_exception_urls" class="cache-settings" placeholder="/members/*"><?php echo esc_html($cache_exception_urls); ?></textarea>
62 </p>
63
64 <span>
65 <?php
66 esc_html_e('Use the wildcard * to exclude child URLs.', 'wp-optimize');
67 echo ' ';
68 // translators: %1$s and %2$s are examples of path using the wildcard *
69 echo wp_kses_post(sprintf(_x('e.g. %1$s or %2$s', '%s are examples of path using the wildcard *', 'wp-optimize'), '<code>'.esc_html_x('/shop/*', 'an example path with the wildcard (*)', 'wp-optimize').'</code>', '<code>'.esc_html_x('*sample-path*', 'a second example path using the wildcard (*) twice', 'wp-optimize').'</code>'));
70 ?>
71 </span>
72
73 <?php do_action('wpo_after_cache_exception_urls'); ?>
74
75 </div>
76
77 <?php do_action('wpo_after_cache_exception_urls_fieldgroup'); ?>
78
79 <h3 class="wpo-first-child"><?php esc_html_e('Ignore these query variables when caching', 'wp-optimize'); ?></h3>
80
81 <div class="wpo-fieldgroup">
82
83 <p>
84 <label for="cache_ignore_query_variables">
85 <?php esc_html_e('List query variables that should be ignored while caching (one per line)', 'wp-optimize'); ?>
86 </label>
87 <textarea name="cache_ignore_query_variables" id="cache_ignore_query_variables" class="cache-settings" placeholder="wpo_cache_debug" disabled><?php echo esc_textarea($cache_ignore_query_variables); ?></textarea>
88 </p>
89 <p><a href="<?php echo esc_url(WP_Optimize()->premium_version_link); ?>&utm_content=cache_ignore_query_variables" target="_blank"><?php esc_html_e('Upgrade to WP-Optimize Premium to unlock this feature.', 'wp-optimize'); ?></a></p>
90
91 <?php do_action('wpo_after_cache_ignore_query_variables'); ?>
92
93 </div>
94
95 <?php do_action('wpo_after_cache_ignore_query_variables_fieldgroup'); ?>
96
97 <h3 class="wpo-first-child"><?php esc_html_e('Cookies which, if present, will prevent caching (one per line)', 'wp-optimize'); ?></h3>
98
99 <div class="wpo-fieldgroup">
100
101 <p>
102 <label for="cache_exception_cookies"><?php esc_html_e('List of cookies that will prevent caching when set.', 'wp-optimize'); ?></label>
103 <textarea name="cache_exception_cookies" id="cache_exception_cookies" class="cache-settings" placeholder="wordpress_*"><?php echo esc_textarea($cache_exception_cookies); ?></textarea>
104 </p>
105 </div>
106
107 <h3 class="wpo-first-child"><?php esc_html_e('Conditional tags to exclude from caching', 'wp-optimize'); ?></h3>
108
109 <div class="wpo-fieldgroup">
110
111 <p>
112 <label for="cache_exception_conditional_tags">
113 <?php
114 // translators: %s is an example conditional tag
115 echo wp_kses_post(sprintf(__('List conditional tags (e.g. %s) that should not be cached (one per line).', 'wp-optimize'), '<code>is_single</code>'));
116 echo '&nbsp;';
117 // translators: %1$s and %2$s are anchor tags
118 echo wp_kses_post(sprintf(__('You can find more details about conditional tags from %1$shere%2$s', 'wp-optimize'), '<a href="https://codex.wordpress.org/Conditional_Tags" target="_blank">', '</a>'));
119 ?>
120 </label>
121 <textarea name="cache_exception_conditional_tags" id="cache_exception_conditional_tags" class="cache-settings" placeholder="is_single"><?php echo esc_textarea($cache_exception_conditional_tags); ?></textarea>
122 </p>
123
124 <?php do_action('wpo_after_cache_conditional_tags'); ?>
125
126 </div>
127
128 <h3 class="wpo-first-child"><?php esc_html_e('List of browser agent strings which, if detected, will prevent caching', 'wp-optimize'); ?></h3>
129
130 <div class="wpo-fieldgroup">
131
132 <p>
133 <label for="cache_exception_browser_agents"><?php esc_html_e('List of browser agents strings or substrings that should not be served cached files (one per line)', 'wp-optimize'); ?></label>
134 <textarea name="cache_exception_browser_agents" id="cache_exception_browser_agents" class="cache-settings" placeholder="AppleWebKit/*"><?php echo esc_textarea($cache_exception_browser_agents); ?></textarea>
135 </p>
136
137 <span><?php esc_html_e('If any of the above strings is found in the User-Agent HTTP header, then the requested page will not be cached.', 'wp-optimize'); ?> </span>
138 </div>
139
140 <?php do_action('wpo_page_cache_advanced_settings', $wpo_cache_options); ?>
141
142 <input id="wp-optimize-save-cache-advanced-rules" class="button button-primary" type="submit" name="wp-optimize-save-cache-advanced-rules" value="Save changes">
143
144 <img class="wpo_spinner" src="<?php echo esc_url(admin_url('images/spinner-2x.gif')); // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage -- N/A ?>" alt="...">
145
146 <span class="save-done dashicons dashicons-yes display-none"></span>
147