PluginProbe
Powered Cache – Caching and Optimization for WordPress – Easily Improve PageSpeed & Web Vitals Score / 1.0.1
Powered Cache – Caching and Optimization for WordPress – Easily Improve PageSpeed & Web Vitals Score v1.0.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.0.1, at includes/admin/settings/basic-options.php

105 lines 4.7 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 <tr>
34 <th scope="row"><label for="powered_cache_object_cache"><?php _e( 'Object Caching', 'powered-cache' ); ?></label></th>
35 <td>
36 <select name="powered_cache_settings[object_cache]" id="powered_cache_object_cache">
37 <option value="off" <?php selected( powered_cache_get_option( 'object_cache' ), 'off' ); ?>><?php _e( 'Off', 'powered-cache' ); ?></option>
38 <?php
39 foreach($object_cache_methods as $obj_cache):
40 ?>
41 <option <?php selected( powered_cache_get_option( 'object_cache' ), $obj_cache ); ?> value="<?php echo $obj_cache; ?>"><?php echo ucfirst( $obj_cache ); ?></option>
42 <?php endforeach;?>
43 </select>
44 <?php echo __( 'Speed up dynamic pageviews', 'powered-cache' ); ?>
45 (<a target="_blank" href="http://docs.poweredcache.com/article/6-object-cache">?</a>)
46 </td>
47 </tr>
48
49 <tr>
50 <th scope="row"><label for="powered_cache_mobile_cache"><?php _e( 'Mobile Cache', 'powered-cache' ); ?></label></th>
51 <td>
52 <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>
53
54 <div id="separate-mobile-cache" style="display:<?php echo( '1' == powered_cache_get_option( 'cache_mobile' ) ? '' : 'none;' ) ?>">
55 <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>
56 </div>
57 (<a target="_blank" href="http://docs.poweredcache.com/article/7-mobile-cache">?</a>)
58
59 </td>
60 </tr>
61
62 <tr>
63 <th scope="row"><label for="powered_cache_loggedin_user_cache"><?php _e( 'Logged in user cache', 'powered-cache' ); ?></label></th>
64 <td>
65 <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>
66 (<a target="_blank" href="http://docs.poweredcache.com/article/8-logged-in-user-cache">?</a>)
67 </td>
68 </tr>
69
70 <tr>
71 <th scope="row"><label for="powered_cache_ssl_cache"><?php _e( 'SSL Cache', 'powered-cache' ); ?></label></th>
72 <td>
73 <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>
74 (<a target="_blank" href="http://docs.poweredcache.com/article/9-caching-on-https">?</a>)
75 </td>
76 </tr>
77
78 <tr>
79 <th scope="row"><label for="powered_cache_gzip_status"><?php _e( 'Gzip', 'powered-cache' ); ?></label></th>
80 <td>
81 <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>
82 </td>
83 </tr>
84
85 <tr>
86 <th scope="row"><label for="powered_cache_cache_timeout"><?php _e( 'Cache Timeout', 'powered-cache' ); ?></label></th>
87 <td>
88 <label><input size="5" id="powered_cache_cache_timeout" type="text" value="<?php echo powered_cache_get_option( 'cache_timeout' ); ?>" name="powered_cache_settings[cache_timeout]"> <?php _e( 'minutes', 'powered-cache' ); ?></label>
89 (<a target="_blank" href="http://docs.poweredcache.com/article/10-cache-timeout">?</a>)
90 </td>
91 </tr>
92
93
94
95 </tbody>
96 </table>
97
98 </div>
99 <!-- .inside -->
100
101 </div>
102 <!-- .postbox -->
103
104 </div>
105