PluginProbe
Powered Cache – Caching and Optimization for WordPress – Easily Improve PageSpeed & Web Vitals Score / 1.1
Powered Cache – Caching and Optimization for WordPress – Easily Improve PageSpeed & Web Vitals Score v1.1
trunk 1.0 1.0.1 1.1 1.1.1 1.1.2 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 2.0 2.0.1 2.0.2 2.0.3 2.0.4 2.1 2.1.1 2.1.2 2.2 2.2.1 All 69 releases
powered-cache / includes / admin / settings / basic-options.php

basic-options.php in Powered Cache – Caching and Optimization for WordPress – Easily Improve PageSpeed & Web Vitals Score 1.1, at includes/admin/settings/basic-options.php

120 lines 5.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 *
4 * Settings page template
5 *
6 * @package PoweredCache
7 * @subpackage PoweredCache/Settings
8 */
9
10 // Exit if accessed directly
11 if ( ! defined( 'ABSPATH' ) ) {
12 exit;
13 }
14
15 ?>
16
17 <div class="meta-box-sortables ui-sortable">
18 <div class="postbox">
19 <div class="inside">
20
21 <table class="form-table">
22 <tbody>
23 <tr>
24 <th scope="row"><label for="powered_cache_caching_status"><?php _e( 'Page Cache', 'powered-cache' ); ?></label></th>
25 <td>
26 <label><input type="checkbox" <?php checked( powered_cache_get_option( 'enable_page_caching' ), 1 ); ?> id="powered_cache_caching_status" name="powered_cache_settings[enable_page_caching]" value="1">
27 <?php _e( 'Enable page caching that will reduce the response time of your site.', 'powered-cache' ); ?>
28 (<a target="_blank" href="http://docs.poweredcache.com/article/4-page-cache">?</a>)
29 </label>
30 </td>
31 </tr>
32
33 <?php
34 // additional control needed for cache flushing
35 if ( ( is_multisite() && current_user_can( 'manage_network' ) ) || current_user_can( 'activate_plugins' ) ): ?>
36 <tr>
37 <th scope="row"><label for="powered_cache_object_cache"><?php _e( 'Object Caching', 'powered-cache' ); ?></label></th>
38 <td>
39 <select name="powered_cache_settings[object_cache]" id="powered_cache_object_cache">
40 <option value="off" <?php selected( powered_cache_get_option( 'object_cache' ), 'off' ); ?>><?php _e( 'Off', 'powered-cache' ); ?></option>
41 <?php
42 foreach($object_cache_methods as $obj_cache):
43 ?>
44 <option <?php selected( powered_cache_get_option( 'object_cache' ), $obj_cache ); ?> value="<?php echo $obj_cache; ?>"><?php echo ucfirst( $obj_cache ); ?></option>
45 <?php endforeach;?>
46 </select>
47 <?php echo __( 'Speed up dynamic pageviews', 'powered-cache' ); ?>
48 (<a target="_blank" href="http://docs.poweredcache.com/article/6-object-cache">?</a>)
49 </td>
50 </tr>
51 <?php endif; ?>
52
53 <tr>
54 <th scope="row"><label for="powered_cache_mobile_cache"><?php _e( 'Mobile Cache', 'powered-cache' ); ?></label></th>
55 <td>
56 <label><input type="checkbox" id="powered_cache_mobile_cache" name="powered_cache_settings[cache_mobile]" <?php checked( powered_cache_get_option( 'cache_mobile' ), 1 ); ?> value="1"><?php _e('Enable caching for mobile devices.','powered-cache'); ?></label>
57
58 <div id="separate-mobile-cache" style="display:<?php echo( '1' == powered_cache_get_option( 'cache_mobile' ) ? '' : 'none;' ) ?>">
59 <label><input type="checkbox" id="cache_mobile_separate_file" name="powered_cache_settings[cache_mobile_separate_file]" <?php checked( powered_cache_get_option( 'cache_mobile_separate_file' ), 1 ); ?> value="1"><?php _e('Use separate cache file for mobile.','powered-cache'); ?></label>
60 </div>
61 (<a target="_blank" href="http://docs.poweredcache.com/article/7-mobile-cache">?</a>)
62
63 </td>
64 </tr>
65
66 <tr>
67 <th scope="row"><label for="powered_cache_loggedin_user_cache"><?php _e( 'Logged in user cache', 'powered-cache' ); ?></label></th>
68 <td>
69 <label><input type="checkbox" id="powered_cache_loggedin_user_cache" name="powered_cache_settings[loggedin_user_cache]" <?php checked( powered_cache_get_option( 'loggedin_user_cache' ), 1 ); ?> value="1"><?php _e('Show cached page for logged in users','powered-cache'); ?></label>
70 (<a target="_blank" href="http://docs.poweredcache.com/article/8-logged-in-user-cache">?</a>)
71 </td>
72 </tr>
73
74 <tr>
75 <th scope="row"><label for="powered_cache_ssl_cache"><?php _e( 'SSL Cache', 'powered-cache' ); ?></label></th>
76 <td>
77 <label><input type="checkbox" id="powered_cache_ssl_cache" name="powered_cache_settings[ssl_cache]" <?php checked( powered_cache_get_option( 'ssl_cache' ), 1 ); ?> value="1"><?php _e('Enable caching for SSL','powered-cache'); ?></label>
78 (<a target="_blank" href="http://docs.poweredcache.com/article/9-caching-on-https">?</a>)
79 </td>
80 </tr>
81
82 <tr>
83 <th scope="row"><label for="powered_cache_gzip_status"><?php _e( 'Gzip', 'powered-cache' ); ?></label></th>
84 <td>
85 <label><input type="checkbox" id="powered_cache_gzip_status" name="powered_cache_settings[gzip_compression]" <?php checked( powered_cache_get_option( 'gzip_compression' ), 1 ); ?> value="1"><?php _e('Enable gzip compression','powered-cache'); ?></label>
86 </td>
87 </tr>
88
89 <tr>
90 <th scope="row"><label for="powered_cache_cache_timeout"><?php _e( 'Cache Timeout', 'powered-cache' ); ?></label></th>
91 <td>
92 <?php
93 $cache_timeout_in_minutes = powered_cache_get_option( 'cache_timeout' );
94 list( $cache_timeout, $selected_interval ) = Powered_Cache_Admin_Helper::get_timeout_interval( $cache_timeout_in_minutes );
95 ?>
96 <label><input size="5" id="powered_cache_cache_timeout" type="text" value="<?php echo $cache_timeout; ?>" name="powered_cache_settings[cache_timeout]"> </label>
97 <label>
98 <select name="powered_cache_settings[cache_timeout_interval]" id="powered_cache_cache_timeout_interval">
99 <option <?php selected( 'MINUTE', $selected_interval ); ?> value="MINUTE"><?php echo __( 'Minute', 'powered-cache' ); ?></option>
100 <option <?php selected( 'HOUR', $selected_interval ); ?> value="HOUR"><?php echo __( 'Hour', 'powered-cache' ); ?></option>
101 <option <?php selected( 'DAY', $selected_interval ); ?> value="DAY"><?php echo __( 'Day', 'powered-cache' ); ?></option>
102 </select>
103 </label>
104 (<a target="_blank" href="http://docs.poweredcache.com/article/10-cache-timeout">?</a>)
105 </td>
106 </tr>
107
108
109
110 </tbody>
111 </table>
112
113 </div>
114 <!-- .inside -->
115
116 </div>
117 <!-- .postbox -->
118
119 </div>
120