PluginProbe
Docket Cache – Object Cache Accelerator / 24.07.06
Docket Cache – Object Cache Accelerator v24.07.06
26.04.05 trunk 22.07.01 22.07.02 22.07.03 22.07.04 22.07.05 23.08.01 23.08.02 24.07.01 24.07.02 24.07.03 24.07.04 24.07.05 24.07.06 24.07.07 26.04.03 26.04.04
docket-cache / includes / admin / overview.php

overview.php in Docket Cache – Object Cache Accelerator 24.07.06, at includes/admin/overview.php

202 lines 7.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Docket Cache.
4 *
5 * @author Nawawi Jamili
6 * @license MIT
7 *
8 * @see https://github.com/nawawi/docket-cache
9 */
10
11 namespace Nawawi\DocketCache;
12
13 \defined('ABSPATH') || exit;
14
15 $has_proxy = false;
16 $proxy_title = '';
17 if ($this->pt->is_behind_proxy()) :
18 $has_proxy = true;
19 $cf = $this->pt->is_cloudflare();
20 if (false !== $cf) :
21 $proxy_title = 'Cloudflare';
22 $proxy_text = esc_html($cf);
23 else :
24 $proxy_title = esc_html__('Web Proxy', 'docket-cache');
25 $proxy_text = $this->pt->get_proxy_ip();
26 endif;
27 endif;
28
29 $has_stats = $this->vcf()->is_dctrue('STATS');
30
31 ?>
32 <div class="section overview">
33 <div class="flex-container">
34 <div class="row-left">
35 <?php $this->tab_title(esc_html__('Overview', 'docket-cache')); ?>
36 <table class="form-table">
37 <tr>
38 <th><?php esc_html_e('Web Server', 'docket-cache'); ?></th>
39 <td><?php echo $this->pt->get_server_software(); ?></td>
40 </tr>
41
42 <tr>
43 <th<?php echo !$has_proxy ? ' class="border-b"' : ''; ?>><?php esc_html_e('PHP SAPI', 'docket-cache'); ?></th>
44 <td><?php echo \PHP_VERSION.' / '.\PHP_SAPI.' ('.\PHP_OS_FAMILY.')'; ?></td>
45 </tr>
46
47 <?php if ($has_proxy) : ?>
48 <tr>
49 <th class="border-b"><?php echo $proxy_title; ?></th>
50 <td><?php echo $proxy_text; ?></td>
51 </tr>
52 <?php endif; ?>
53
54 <?php if (!empty($this->info->status_text_stats) && !empty($this->info->opcache_dc_stats)) : ?>
55 <tr>
56 <th><?php esc_html_e('Object Cache Stats', 'docket-cache'); ?></th>
57 <td id="objectcache-stats">
58 <?php
59 echo $this->info->status_text_stats;
60 ?>
61 </td>
62 </tr>
63 <tr>
64 <th><?php esc_html_e('Object OPcache Stats', 'docket-cache'); ?></th>
65 <td id="dcopcache-stats">
66 <?php echo $this->info->opcache_dc_stats; ?>
67 </td>
68 </tr>
69 <tr>
70 <th class="border-b"><?php esc_html_e('WP OPcache Stats', 'docket-cache'); ?></th>
71 <td id="wpopcache-stats">
72 <?php echo $this->info->opcache_wp_stats; ?>
73 </td>
74 </tr>
75 <?php else : ?>
76 <tr>
77 <th><?php esc_html_e('Object Cache', 'docket-cache'); ?></th>
78 <td id="objectcache-stats">
79 <?php
80 echo 1 === $this->info->status_code && !empty($this->info->status_text_stats) ? $this->info->status_text_stats : $this->info->status_text;
81 ?>
82 </td>
83 </tr>
84 <tr>
85 <th class="border-b"><?php esc_html_e('Zend OPcache', 'docket-cache'); ?></th>
86 <td id="opcache-stats0">
87 <?php
88 echo 1 === $this->info->opcache_code && !empty($this->info->opcache_text_stats) ? $this->info->opcache_text_stats : $this->info->opcache_text;
89 ?>
90 </td>
91 </tr>
92 <?php endif; ?>
93 <tr>
94 <th><?php esc_html_e('PHP Memory Limit', 'docket-cache'); ?></th>
95 <td><?php echo $this->info->php_memory_limit; ?></td>
96 </tr>
97 <tr>
98 <th><?php esc_html_e('WP Frontend Memory Limit', 'docket-cache'); ?></th>
99 <td><?php echo $this->info->wp_memory_limit; ?></td>
100 </tr>
101 <tr>
102 <th class="border-b"><?php esc_html_e('WP Backend Memory Limit', 'docket-cache'); ?></th>
103 <td><?php echo $this->info->wp_max_memory_limit; ?></td>
104 </tr>
105 <?php
106 if (is_multisite()) :
107 $wp_multinetlock = $this->info->wp_multinetlock;
108 ?>
109
110 <?php if (empty($wp_multinetlock)) : ?>
111 <tr>
112 <th class="border-b"><?php esc_html_e('WP Multi Site', 'docket-cache'); ?></th>
113 <td><?php echo $this->info->wp_multisite; ?></td>
114 </tr>
115 <?php else : ?>
116 <tr>
117 <th><?php esc_html_e('WP Multi Network', 'docket-cache'); ?></th>
118 <td><?php echo $this->info->wp_multisite; ?></td>
119 </tr>
120 <tr>
121 <th><?php esc_html_e('Primary Network', 'docket-cache'); ?></th>
122 <td><?php echo $this->info->wp_multinetmain; ?></td>
123 </tr>
124 <tr>
125 <th class="border-b"><?php esc_html_e('Network Locking File', 'docket-cache'); ?></th>
126 <td><?php echo $this->info->wp_multinetlock; ?></td>
127 </tr>
128 <?php endif; ?>
129 <?php endif; ?>
130
131 <tr>
132 <th><?php esc_html_e('Drop-in Writable', 'docket-cache'); ?></th>
133 <td><?php echo $this->info->write_dropin; ?></td>
134 </tr>
135
136 <tr>
137 <th<?php echo !$this->info->dropin_isalt ? ' class="border-b"' : ''; ?>><?php esc_html_e('Drop-in File', 'docket-cache'); ?></th>
138 <td><?php echo $this->info->dropin_path; ?></td>
139 </tr>
140
141 <?php if ($this->info->dropin_isalt) : ?>
142 <tr>
143 <th><?php esc_html_e('Drop-in use Wrapper', 'docket-cache'); ?></th>
144 <td><?php echo $this->info->dropin_alt; ?></td>
145 </tr>
146 <tr>
147 <th><?php esc_html_e('Drop-in Wrapper Available', 'docket-cache'); ?></th>
148 <td><?php echo $this->info->dropin_wp_exist; ?></td>
149 </tr>
150 <tr>
151 <th class="border-b"><?php esc_html_e('Drop-in Wrapper File', 'docket-cache'); ?></th>
152 <td><?php echo $this->info->dropin_wp; ?></td>
153 </tr>
154 <?php endif; ?>
155
156 <tr>
157 <th><?php esc_html_e('Cache Writable', 'docket-cache'); ?></th>
158 <td><?php echo $this->info->write_cache; ?></td>
159 </tr>
160
161 <tr>
162 <th><?php esc_html_e('Cache Files Limit', 'docket-cache'); ?></th>
163 <td id="file-stats"><?php echo $this->info->cache_file_stats; ?></td>
164 </tr>
165
166 <tr>
167 <th><?php esc_html_e('Cache Disk Limit', 'docket-cache'); ?></th>
168 <td id="disk-stats"><?php echo $this->info->cache_disk_stats; ?></td>
169 </tr>
170
171 <tr>
172 <th><?php esc_html_e('Cache Path', 'docket-cache'); ?></th>
173 <td><?php echo $this->info->cache_path; ?></td>
174 </tr>
175
176 <tr>
177 <th class="border-b"><?php esc_html_e('Chunk Cache Directory', 'docket-cache'); ?></th>
178 <td><?php echo $this->info->cache_chunkdir; ?></td>
179 </tr>
180
181 <tr>
182 <th><?php esc_html_e('Config Writable', 'docket-cache'); ?></th>
183 <td><?php echo $this->info->write_config; ?></td>
184 </tr>
185
186 <tr>
187 <th><?php esc_html_e('Config Path', 'docket-cache'); ?></th>
188 <td><?php echo $this->info->config_path; ?></td>
189 </tr>
190
191 </table>
192 </div>
193 <div class="row-right">
194 <?php $this->render('actions'); ?>
195 </div>
196 </div>
197 </div>
198 <?php
199 if ($has_stats) :
200 echo $this->pt->code_worker('repeat_countcachesize');
201 endif;
202