| 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 |
<div class="section config"> |
| 16 |
<div class="flex-container"> |
| 17 |
<div class="row-left"> |
| 18 |
<?php $this->tab_title(esc_html__('Configuration', 'docket-cache')); ?> |
| 19 |
<table class="form-table form-table-selection"> |
| 20 |
<tr> |
| 21 |
<td colspan="2" class="stitle"> |
| 22 |
<?php esc_html_e('Feature Options', 'docket-cache'); ?> |
| 23 |
</td> |
| 24 |
</tr> |
| 25 |
<tr id="cronbot"> |
| 26 |
<th> |
| 27 |
<?php $this->opt_title('cronbot'); ?> |
| 28 |
</th> |
| 29 |
<td> |
| 30 |
<?php $this->config_select_bool_e('cronbot'); ?> |
| 31 |
</td> |
| 32 |
</tr> |
| 33 |
<tr id="opcviewer"> |
| 34 |
<th> |
| 35 |
<?php $this->opt_title('opcviewer'); ?> |
| 36 |
</th> |
| 37 |
<td> |
| 38 |
<?php $this->config_select_bool_e('opcviewer'); ?> |
| 39 |
</td> |
| 40 |
</tr> |
| 41 |
|
| 42 |
<?php $this->render('@inc:features'); ?> |
| 43 |
|
| 44 |
<tr id="log"> |
| 45 |
<th class="border-b"> |
| 46 |
<?php $this->opt_title('log'); ?> |
| 47 |
</th> |
| 48 |
<td> |
| 49 |
<?php $this->config_select_bool_e('log'); ?> |
| 50 |
</td> |
| 51 |
</tr> |
| 52 |
<tr> |
| 53 |
<td colspan="2" class="stitle"> |
| 54 |
<?php esc_html_e('Cache Options', 'docket-cache'); ?> |
| 55 |
</td> |
| 56 |
</tr> |
| 57 |
<?php if (version_compare($GLOBALS['wp_version'], '6.1', '<')) : ?> |
| 58 |
<tr id="advpost"> |
| 59 |
<th><?php $this->opt_title('advcpost'); ?></th> |
| 60 |
<td> |
| 61 |
<?php $this->config_select_bool_e('advcpost'); ?> |
| 62 |
</td> |
| 63 |
</tr> |
| 64 |
<?php if ($this->vcf()->is_dctrue('advcpost')) : ?> |
| 65 |
<tr id="advpost_posttype_all"> |
| 66 |
<th><?php $this->opt_title('advpost_posttype_all'); ?></th> |
| 67 |
<td> |
| 68 |
<?php $this->config_select_bool_e('advpost_posttype_all'); ?> |
| 69 |
</td> |
| 70 |
</tr> |
| 71 |
<?php endif; ?> |
| 72 |
<?php endif; // wp_version?> |
| 73 |
<tr id="precache"> |
| 74 |
<th><?php $this->opt_title('precache'); ?></th> |
| 75 |
<td> |
| 76 |
<?php $this->config_select_bool_e('precache'); ?> |
| 77 |
</td> |
| 78 |
</tr> |
| 79 |
<tr id="menucache"> |
| 80 |
<th><?php $this->opt_title('menucache'); ?></th> |
| 81 |
<td> |
| 82 |
<?php $this->config_select_bool_e('menucache'); ?> |
| 83 |
</td> |
| 84 |
</tr> |
| 85 |
<tr id="mocache"> |
| 86 |
<th><?php $this->opt_title('mocache'); ?></th> |
| 87 |
<td> |
| 88 |
<?php $this->config_select_bool_e('mocache'); ?> |
| 89 |
</td> |
| 90 |
</tr> |
| 91 |
<tr id="preload"> |
| 92 |
<th><?php $this->opt_title('preload'); ?></th> |
| 93 |
<td> |
| 94 |
<?php $this->config_select_bool_e('preload'); ?> |
| 95 |
</td> |
| 96 |
</tr> |
| 97 |
<tr id="transientdb"> |
| 98 |
<th class="border-b"><?php $this->opt_title('transientdb'); ?></th> |
| 99 |
<td> |
| 100 |
<?php $this->config_select_bool_e('transientdb'); ?> |
| 101 |
</td> |
| 102 |
</tr> |
| 103 |
<tr> |
| 104 |
<td colspan="2" class="stitle"> |
| 105 |
<?php esc_html_e('Optimisations', 'docket-cache'); ?> |
| 106 |
</td> |
| 107 |
</tr> |
| 108 |
<tr id="optwpquery"> |
| 109 |
<th><?php $this->opt_title('optwpquery'); ?></th> |
| 110 |
<td> |
| 111 |
<?php $this->config_select_bool_e('optwpquery'); ?> |
| 112 |
</td> |
| 113 |
</tr> |
| 114 |
<tr id="optermcount"> |
| 115 |
<th><?php $this->opt_title('optermcount'); ?></th> |
| 116 |
<td> |
| 117 |
<?php $this->config_select_bool_e('optermcount'); ?> |
| 118 |
</td> |
| 119 |
</tr> |
| 120 |
<tr id="cronoptmzdb"> |
| 121 |
<th><?php $this->opt_title('cronoptmzdb'); ?></th> |
| 122 |
<td> |
| 123 |
<?php |
| 124 |
$this->config_select_set_e( |
| 125 |
'cronoptmzdb', |
| 126 |
[ |
| 127 |
'default' => __('Default', 'docket-cache'), |
| 128 |
'daily' => __('Daily', 'docket-cache'), |
| 129 |
'weekly' => __('Weekly', 'docket-cache'), |
| 130 |
'monthly' => __('Monthly', 'docket-cache'), |
| 131 |
'never' => __('Never', 'docket-cache'), |
| 132 |
] |
| 133 |
); |
| 134 |
?> |
| 135 |
</td> |
| 136 |
</tr> |
| 137 |
<tr id="wpoptaload"> |
| 138 |
<th><?php $this->opt_title('wpoptaload'); ?></th> |
| 139 |
<td> |
| 140 |
<?php $this->config_select_bool_e('wpoptaload'); ?> |
| 141 |
</td> |
| 142 |
</tr> |
| 143 |
<tr id="postmissedschedule"> |
| 144 |
<th><?php $this->opt_title('postmissedschedule'); ?></th> |
| 145 |
<td> |
| 146 |
<?php $this->config_select_bool_e('postmissedschedule'); ?> |
| 147 |
</td> |
| 148 |
</tr> |
| 149 |
<tr id="limitbulkedit"> |
| 150 |
<th><?php $this->opt_title('limitbulkedit'); ?></th> |
| 151 |
<td> |
| 152 |
<?php $this->config_select_bool_e('limitbulkedit'); ?> |
| 153 |
</td> |
| 154 |
</tr> |
| 155 |
<tr id="misc_tweaks"> |
| 156 |
<th class="border-b"><?php $this->opt_title('misc_tweaks'); ?></th> |
| 157 |
<td> |
| 158 |
<?php $this->config_select_bool_e('misc_tweaks'); ?> |
| 159 |
</td> |
| 160 |
</tr> |
| 161 |
<tr> |
| 162 |
<td colspan="2" class="stitle"> |
| 163 |
<?php esc_html_e('Woo Tweaks', 'docket-cache'); ?> |
| 164 |
</td> |
| 165 |
</tr> |
| 166 |
<tr id="wootweaks"> |
| 167 |
<th><?php $this->opt_title('wootweaks'); ?></th> |
| 168 |
<td> |
| 169 |
<?php $this->config_select_bool_e('wootweaks'); ?> |
| 170 |
</td> |
| 171 |
</tr> |
| 172 |
<tr id="wooadminoff"> |
| 173 |
<th><?php $this->opt_title('wooadminoff'); ?></th> |
| 174 |
<td> |
| 175 |
<?php $this->config_select_bool_e('wooadminoff'); ?> |
| 176 |
</td> |
| 177 |
</tr> |
| 178 |
<tr id="woowidgetoff"> |
| 179 |
<th><?php $this->opt_title('woowidgetoff'); ?></th> |
| 180 |
<td> |
| 181 |
<?php $this->config_select_bool_e('woowidgetoff'); ?> |
| 182 |
</td> |
| 183 |
</tr> |
| 184 |
<tr id="woowpdashboardoff"> |
| 185 |
<th><?php $this->opt_title('woowpdashboardoff'); ?></th> |
| 186 |
<td> |
| 187 |
<?php $this->config_select_bool_e('woowpdashboardoff'); ?> |
| 188 |
</td> |
| 189 |
</tr> |
| 190 |
<tr id="wooextensionpageoff"> |
| 191 |
<th><?php $this->opt_title('wooextensionpageoff'); ?></th> |
| 192 |
<td> |
| 193 |
<?php $this->config_select_bool_e('wooextensionpageoff'); ?> |
| 194 |
</td> |
| 195 |
</tr> |
| 196 |
<tr id="woocartfragsoff"> |
| 197 |
<th><?php $this->opt_title('woocartfragsoff'); ?></th> |
| 198 |
<td> |
| 199 |
<?php $this->config_select_bool_e('woocartfragsoff'); ?> |
| 200 |
</td> |
| 201 |
</tr> |
| 202 |
<tr id="wooaddtochartcrawling"> |
| 203 |
<th class="border-b"><?php $this->opt_title('wooaddtochartcrawling'); ?></th> |
| 204 |
<td> |
| 205 |
<?php $this->config_select_bool_e('wooaddtochartcrawling'); ?> |
| 206 |
</td> |
| 207 |
</tr> |
| 208 |
<tr> |
| 209 |
<td colspan="2" class="stitle"> |
| 210 |
<?php esc_html_e('WP Tweaks', 'docket-cache'); ?> |
| 211 |
</td> |
| 212 |
</tr> |
| 213 |
<tr id="headerjunk"> |
| 214 |
<th><?php $this->opt_title('headerjunk'); ?></th> |
| 215 |
<td> |
| 216 |
<?php $this->config_select_bool_e('headerjunk'); ?> |
| 217 |
</td> |
| 218 |
</tr> |
| 219 |
<tr id="pingback"> |
| 220 |
<th><?php $this->opt_title('pingback'); ?></th> |
| 221 |
<td> |
| 222 |
<?php $this->config_select_bool_e('pingback'); ?> |
| 223 |
</td> |
| 224 |
</tr> |
| 225 |
<tr id="wpemoji"> |
| 226 |
<th><?php $this->opt_title('wpemoji'); ?></th> |
| 227 |
<td> |
| 228 |
<?php $this->config_select_bool_e('wpemoji'); ?> |
| 229 |
</td> |
| 230 |
</tr> |
| 231 |
<tr id="wpfeed"> |
| 232 |
<th><?php $this->opt_title('wpfeed'); ?></th> |
| 233 |
<td> |
| 234 |
<?php $this->config_select_bool_e('wpfeed'); ?> |
| 235 |
</td> |
| 236 |
</tr> |
| 237 |
<tr id="wpembed"> |
| 238 |
<th><?php $this->opt_title('wpembed'); ?></th> |
| 239 |
<td> |
| 240 |
<?php $this->config_select_bool_e('wpembed'); ?> |
| 241 |
</td> |
| 242 |
</tr> |
| 243 |
<tr id="wplazyload"> |
| 244 |
<th><?php $this->opt_title('wplazyload'); ?></th> |
| 245 |
<td> |
| 246 |
<?php $this->config_select_bool_e('wplazyload'); ?> |
| 247 |
</td> |
| 248 |
</tr> |
| 249 |
<tr id="wpsitemap"> |
| 250 |
<th><?php $this->opt_title('wpsitemap'); ?></th> |
| 251 |
<td> |
| 252 |
<?php $this->config_select_bool_e('wpsitemap'); ?> |
| 253 |
</td> |
| 254 |
</tr> |
| 255 |
<tr id="wpapppassword"> |
| 256 |
<th><?php $this->opt_title('wpapppassword'); ?></th> |
| 257 |
<td> |
| 258 |
<?php $this->config_select_bool_e('wpapppassword'); ?> |
| 259 |
</td> |
| 260 |
</tr> |
| 261 |
<tr id="wpdashboardnews"> |
| 262 |
<th><?php $this->opt_title('wpdashboardnews'); ?></th> |
| 263 |
<td> |
| 264 |
<?php $this->config_select_bool_e('wpdashboardnews'); ?> |
| 265 |
</td> |
| 266 |
</tr> |
| 267 |
<tr id="postviaemail"> |
| 268 |
<th><?php $this->opt_title('postviaemail'); ?></th> |
| 269 |
<td> |
| 270 |
<?php $this->config_select_bool_e('postviaemail'); ?> |
| 271 |
</td> |
| 272 |
</tr> |
| 273 |
<tr id="wpbrowsehappy"> |
| 274 |
<th><?php $this->opt_title('wpbrowsehappy'); ?></th> |
| 275 |
<td> |
| 276 |
<?php $this->config_select_bool_e('wpbrowsehappy'); ?> |
| 277 |
</td> |
| 278 |
</tr> |
| 279 |
<tr id="wpservehappy"> |
| 280 |
<th><?php $this->opt_title('wpservehappy'); ?></th> |
| 281 |
<td> |
| 282 |
<?php $this->config_select_bool_e('wpservehappy'); ?> |
| 283 |
</td> |
| 284 |
</tr> |
| 285 |
<tr id="limithttprequest"> |
| 286 |
<th><?php $this->opt_title('limithttprequest'); ?></th> |
| 287 |
<td> |
| 288 |
<?php $this->config_select_bool_e('limithttprequest'); ?> |
| 289 |
</td> |
| 290 |
</tr> |
| 291 |
<?php if (version_compare($GLOBALS['wp_version'], '5.8', '<')) : ?> |
| 292 |
<tr id="httpheadersexpect"> |
| 293 |
<th class="border-b"><?php $this->opt_title('httpheadersexpect'); ?></th> |
| 294 |
<td> |
| 295 |
<?php $this->config_select_bool_e('httpheadersexpect'); ?> |
| 296 |
</td> |
| 297 |
</tr> |
| 298 |
<?php endif; ?> |
| 299 |
<?php if (is_main_network()) : ?> |
| 300 |
<tr> |
| 301 |
<td colspan="2" class="stitle"> |
| 302 |
<?php esc_html_e('Runtime Options', 'docket-cache'); ?> |
| 303 |
</td> |
| 304 |
</tr> |
| 305 |
<tr id="rtpostautosave"> |
| 306 |
<th><?php $this->opt_title('rtpostautosave'); ?></th> |
| 307 |
<td> |
| 308 |
<?php |
| 309 |
$this->config_select_set_e( |
| 310 |
'rtpostautosave', |
| 311 |
[ |
| 312 |
'default' => __('Default', 'docket-cache'), |
| 313 |
'1' => __('Every Minute', 'docket-cache'), |
| 314 |
'5' => __('Every 5 Minutes', 'docket-cache'), |
| 315 |
'15' => __('Every 15 Minutes', 'docket-cache'), |
| 316 |
'off' => __('Disable', 'docket-cache'), |
| 317 |
] |
| 318 |
); |
| 319 |
?> |
| 320 |
</td> |
| 321 |
</tr> |
| 322 |
<tr id="rtpostrevision"> |
| 323 |
<th><?php $this->opt_title('rtpostrevision'); ?></th> |
| 324 |
<td> |
| 325 |
<?php |
| 326 |
$this->config_select_set_e( |
| 327 |
'rtpostrevision', |
| 328 |
[ |
| 329 |
'default' => __('Default', 'docket-cache'), |
| 330 |
'3' => __('Limit to 3 Revisions', 'docket-cache'), |
| 331 |
'5' => __('Limit to 5 Revisions', 'docket-cache'), |
| 332 |
'on' => __('No Limit', 'docket-cache'), |
| 333 |
'off' => __('Disable', 'docket-cache'), |
| 334 |
] |
| 335 |
); |
| 336 |
?> |
| 337 |
</td> |
| 338 |
</tr> |
| 339 |
<tr id="rtpostemptytrash"> |
| 340 |
<th><?php $this->opt_title('rtpostemptytrash'); ?></th> |
| 341 |
<td> |
| 342 |
<?php |
| 343 |
$this->config_select_set_e( |
| 344 |
'rtpostemptytrash', |
| 345 |
[ |
| 346 |
'default' => __('Default', 'docket-cache'), |
| 347 |
'7' => __('Empty In 7 Days', 'docket-cache'), |
| 348 |
'14' => __('Empty In 14 Days', 'docket-cache'), |
| 349 |
'30' => __('Empty In 30 Days', 'docket-cache'), |
| 350 |
'off' => __('Disable', 'docket-cache'), |
| 351 |
] |
| 352 |
); |
| 353 |
?> |
| 354 |
</td> |
| 355 |
</tr> |
| 356 |
<tr id="rtimageoverwrite"> |
| 357 |
<th><?php $this->opt_title('rtimageoverwrite'); ?></th> |
| 358 |
<td> |
| 359 |
<?php |
| 360 |
$this->config_select_set_e( |
| 361 |
'rtimageoverwrite', |
| 362 |
[ |
| 363 |
'default' => __('Default', 'docket-cache'), |
| 364 |
'on' => __('Enable', 'docket-cache'), |
| 365 |
'off' => __('Disable', 'docket-cache'), |
| 366 |
], |
| 367 |
!empty($GLOBALS[$this->vcf()->px('rtimageoverwrite_false')]) && IMAGE_EDIT_OVERWRITE ? 'on' : $this->vcf()->dcvalue('rtimageoverwrite') |
| 368 |
); |
| 369 |
?> |
| 370 |
</td> |
| 371 |
</tr> |
| 372 |
<tr id="rtwpcoreupdate"> |
| 373 |
<th><?php $this->opt_title('rtwpcoreupdate'); ?></th> |
| 374 |
<td> |
| 375 |
<?php |
| 376 |
$this->config_select_set_e( |
| 377 |
'rtwpcoreupdate', |
| 378 |
[ |
| 379 |
'default' => __('Default', 'docket-cache'), |
| 380 |
'off' => __('Enable', 'docket-cache'), |
| 381 |
'on' => __('Disable', 'docket-cache'), |
| 382 |
], |
| 383 |
!empty($GLOBALS[$this->vcf()->px('rtwpcoreupdate_false')]) && !(bool) WP_AUTO_UPDATE_CORE ? 'on' : $this->vcf()->dcvalue('rtwpcoreupdate') |
| 384 |
); |
| 385 |
?> |
| 386 |
</td> |
| 387 |
</tr> |
| 388 |
<tr id="rtpluginthemeeditor"> |
| 389 |
<th><?php $this->opt_title('rtpluginthemeeditor'); ?></th> |
| 390 |
<td> |
| 391 |
<?php |
| 392 |
$this->config_select_set_e( |
| 393 |
'rtpluginthemeeditor', |
| 394 |
[ |
| 395 |
'default' => __('Default', 'docket-cache'), |
| 396 |
'on' => __('Enable', 'docket-cache'), |
| 397 |
'off' => __('Disable', 'docket-cache'), |
| 398 |
], |
| 399 |
!empty($GLOBALS[$this->vcf()->px('rtpluginthemeeditor_false')]) && DISALLOW_FILE_EDIT ? 'on' : $this->vcf()->dcvalue('rtpluginthemeeditor') |
| 400 |
); |
| 401 |
?> |
| 402 |
</td> |
| 403 |
</tr> |
| 404 |
<tr id="rtpluginthemeinstall"> |
| 405 |
<th><?php $this->opt_title('rtpluginthemeinstall'); ?></th> |
| 406 |
<td> |
| 407 |
<?php |
| 408 |
$this->config_select_set_e( |
| 409 |
'rtpluginthemeinstall', |
| 410 |
[ |
| 411 |
'default' => __('Default', 'docket-cache'), |
| 412 |
'on' => __('Enable', 'docket-cache'), |
| 413 |
'off' => __('Disable', 'docket-cache'), |
| 414 |
], |
| 415 |
!empty($GLOBALS[$this->vcf()->px('rtpluginthemeinstall_false')]) && DISALLOW_FILE_MODS ? 'on' : $this->vcf()->dcvalue('rtpluginthemeinstall') |
| 416 |
); |
| 417 |
?> |
| 418 |
</td> |
| 419 |
</tr> |
| 420 |
<tr id="rtconcatenatescripts"> |
| 421 |
<th><?php $this->opt_title('rtconcatenatescripts'); ?></th> |
| 422 |
<td> |
| 423 |
<?php |
| 424 |
$this->config_select_set_e( |
| 425 |
'rtconcatenatescripts', |
| 426 |
[ |
| 427 |
'default' => __('Default', 'docket-cache'), |
| 428 |
'on' => __('Enable', 'docket-cache'), |
| 429 |
'off' => __('Disable', 'docket-cache'), |
| 430 |
], |
| 431 |
!empty($GLOBALS[$this->vcf()->px('rtconcatenatescripts_false')]) && !(bool) CONCATENATE_SCRIPTS ? 'on' : $this->vcf()->dcvalue('rtconcatenatescripts') |
| 432 |
); |
| 433 |
?> |
| 434 |
</td> |
| 435 |
</tr> |
| 436 |
<tr id="rtdisablewpcron"> |
| 437 |
<th class="border-b"><?php $this->opt_title('rtdisablewpcron'); ?></th> |
| 438 |
<td> |
| 439 |
<?php |
| 440 |
$this->config_select_set_e( |
| 441 |
'rtdisablewpcron', |
| 442 |
[ |
| 443 |
'default' => __('Default', 'docket-cache'), |
| 444 |
'on' => __('Enable', 'docket-cache'), |
| 445 |
'off' => __('Disable', 'docket-cache'), |
| 446 |
], |
| 447 |
!empty($GLOBALS[$this->vcf()->px('rtdisablewpcron_false')]) && DISABLE_WP_CRON ? 'on' : $this->vcf()->dcvalue('rtdisablewpcron') |
| 448 |
); |
| 449 |
?> |
| 450 |
</td> |
| 451 |
</tr> |
| 452 |
<?php |
| 453 |
$rtwpdebug_default = !empty($GLOBALS[$this->vcf()->px('rtwpdebug_false')]) && WP_DEBUG ? 'on' : $this->vcf()->dcvalue('rtwpdebug'); |
| 454 |
?> |
| 455 |
<tr id="rtwpdebug"> |
| 456 |
<th<?php echo 'off' === $rtwpdebug_default ? ' class="border-b"' : ''; ?>><?php $this->opt_title('rtwpdebug'); ?></th> |
| 457 |
<td> |
| 458 |
<?php |
| 459 |
$this->config_select_set_e( |
| 460 |
'rtwpdebug', |
| 461 |
[ |
| 462 |
'default' => __('Default', 'docket-cache'), |
| 463 |
'on' => __('Enable', 'docket-cache'), |
| 464 |
'off' => __('Disable', 'docket-cache'), |
| 465 |
], |
| 466 |
$rtwpdebug_default |
| 467 |
); |
| 468 |
?> |
| 469 |
</td> |
| 470 |
</tr> |
| 471 |
<?php if ('on' === $rtwpdebug_default) : ?> |
| 472 |
<tr id="rtwpdebugdisplay"> |
| 473 |
<th><?php $this->opt_title('rtwpdebugdisplay'); ?></th> |
| 474 |
<td> |
| 475 |
<?php |
| 476 |
$this->config_select_set_e( |
| 477 |
'rtwpdebugdisplay', |
| 478 |
[ |
| 479 |
'default' => __('Default', 'docket-cache'), |
| 480 |
'on' => __('Enable', 'docket-cache'), |
| 481 |
'off' => __('Disable', 'docket-cache'), |
| 482 |
], |
| 483 |
!empty($GLOBALS[$this->vcf()->px('rtwpdebugdisplay_false')]) && WP_DEBUG_DISPLAY ? 'on' : $this->vcf()->dcvalue('rtwpdebugdisplay') |
| 484 |
); |
| 485 |
?> |
| 486 |
</td> |
| 487 |
</tr> |
| 488 |
<?php |
| 489 |
$rtwpdebuglog_default = !empty($GLOBALS[$this->vcf()->px('rtwpdebuglog_false')]) && WP_DEBUG_LOG ? 'on' : $this->vcf()->dcvalue('rtwpdebuglog'); |
| 490 |
$error_log = \ini_get('error_log'); |
| 491 |
?> |
| 492 |
<tr id="rtwpdebuglog"> |
| 493 |
<th class="border-b"><?php $this->opt_title('rtwpdebuglog'); ?></th> |
| 494 |
<td> |
| 495 |
<?php |
| 496 |
$this->config_select_set_e( |
| 497 |
'rtwpdebuglog', |
| 498 |
[ |
| 499 |
'default' => __('Default', 'docket-cache'), |
| 500 |
'on' => __('Enable', 'docket-cache'), |
| 501 |
'off' => __('Disable', 'docket-cache'), |
| 502 |
], |
| 503 |
$rtwpdebuglog_default |
| 504 |
); |
| 505 |
|
| 506 |
if (\defined('WP_DEBUG') && WP_DEBUG && \defined('WP_DEBUG_LOG') && WP_DEBUG_LOG && @is_file($error_log) && is_readable($error_log)) { |
| 507 |
$error_log = basename($error_log); |
| 508 |
echo '<span class="wpdebuglog"><a class="btxo" title="'.$error_log.'" href="'.$this->tab_query('config', ['wplog' => '0'.time()]).'" rel="noopener" target="new"><span class="dashicons dashicons-external"></span>View Log</a></span>'; |
| 509 |
} |
| 510 |
?> |
| 511 |
</td> |
| 512 |
</tr> |
| 513 |
<?php endif; ?> |
| 514 |
<?php endif; // is_main_network?> |
| 515 |
|
| 516 |
<tr> |
| 517 |
<td colspan="2" class="stitle"> |
| 518 |
<?php esc_html_e('Storage Options', 'docket-cache'); ?> |
| 519 |
</td> |
| 520 |
</tr> |
| 521 |
<tr id="maxfile"> |
| 522 |
<th><?php $this->opt_title('maxfile'); ?></th> |
| 523 |
<td> |
| 524 |
<?php |
| 525 |
$maxfile_default = '50K'; |
| 526 |
switch ($this->vcf()->dcvalue('maxfile')) { |
| 527 |
case '50000': |
| 528 |
$maxfile_default = '50K'; |
| 529 |
break; |
| 530 |
case '100000': |
| 531 |
$maxfile_default = '100K'; |
| 532 |
break; |
| 533 |
case '200000': |
| 534 |
$maxfile_default = '200K'; |
| 535 |
break; |
| 536 |
} |
| 537 |
$this->config_select_set_e( |
| 538 |
'maxfile', |
| 539 |
[ |
| 540 |
'default' => __('Default', 'docket-cache'), |
| 541 |
'50K' => '50000', |
| 542 |
'100K' => '100000', |
| 543 |
'200K' => '200000', |
| 544 |
], |
| 545 |
$maxfile_default |
| 546 |
); |
| 547 |
?> |
| 548 |
</td> |
| 549 |
</tr> |
| 550 |
<tr id="maxsize_disk"> |
| 551 |
<th><?php $this->opt_title('maxsize_disk'); ?></th> |
| 552 |
<td> |
| 553 |
<?php |
| 554 |
$maxsize_disk_default = '500M'; |
| 555 |
switch ($this->vcf()->dcvalue('maxsize_disk')) { |
| 556 |
case '524288000': |
| 557 |
$maxsize_disk_default = '500M'; |
| 558 |
break; |
| 559 |
case '1073741824': |
| 560 |
$maxsize_disk_default = '1G'; |
| 561 |
break; |
| 562 |
case '2147483648': |
| 563 |
$maxsize_disk_default = '2G'; |
| 564 |
break; |
| 565 |
} |
| 566 |
$this->config_select_set_e( |
| 567 |
'maxsize_disk', |
| 568 |
[ |
| 569 |
'default' => __('Default', 'docket-cache'), |
| 570 |
'500M' => '500M', |
| 571 |
'1G' => '1G', |
| 572 |
'2G' => '2G', |
| 573 |
], |
| 574 |
$maxsize_disk_default |
| 575 |
); |
| 576 |
?> |
| 577 |
</td> |
| 578 |
</tr> |
| 579 |
<tr id="chunkcachedir"> |
| 580 |
<th><?php $this->opt_title('chunkcachedir'); ?></th> |
| 581 |
<td> |
| 582 |
<?php $this->config_select_bool_e('chunkcachedir'); ?> |
| 583 |
</td> |
| 584 |
</tr> |
| 585 |
<tr id="maxfile_livecheck"> |
| 586 |
<th><?php $this->opt_title('maxfile_livecheck'); ?></th> |
| 587 |
<td> |
| 588 |
<?php $this->config_select_bool_e('maxfile_livecheck'); ?> |
| 589 |
</td> |
| 590 |
</tr> |
| 591 |
<tr id="flush_stalecache"> |
| 592 |
<th><?php $this->opt_title('flush_stalecache'); ?></th> |
| 593 |
<td> |
| 594 |
<?php $this->config_select_bool_e('flush_stalecache'); ?> |
| 595 |
</td> |
| 596 |
</tr> |
| 597 |
<?php |
| 598 |
/* |
| 599 |
<tr id="stalecache_ignore"> |
| 600 |
<th><?php $this->opt_title('stalecache_ignore'); ?></th> |
| 601 |
<td> |
| 602 |
<?php $this->config_select_bool_e('stalecache_ignore'); ?> |
| 603 |
</td> |
| 604 |
</tr>*/ |
| 605 |
?> |
| 606 |
<tr id="emptycache_ignore"> |
| 607 |
<th class="border-b"><?php $this->opt_title('emptycache_ignore'); ?></th> |
| 608 |
<td> |
| 609 |
<?php $this->config_select_bool_e('emptycache_ignore'); ?> |
| 610 |
</td> |
| 611 |
</tr> |
| 612 |
<tr> |
| 613 |
<td colspan="2" class="stitle"> |
| 614 |
<?php esc_html_e('Admin Interface', 'docket-cache'); ?> |
| 615 |
</td> |
| 616 |
</tr> |
| 617 |
<tr id="pageloader"> |
| 618 |
<th><?php $this->opt_title('pageloader'); ?></th> |
| 619 |
<td> |
| 620 |
<?php $this->config_select_bool_e('pageloader'); ?> |
| 621 |
</td> |
| 622 |
</tr> |
| 623 |
<tr id="stats"> |
| 624 |
<th><?php $this->opt_title('stats'); ?></th> |
| 625 |
<td> |
| 626 |
<?php $this->config_select_bool_e('stats'); ?> |
| 627 |
</td> |
| 628 |
</tr> |
| 629 |
<tr id="gcaction"> |
| 630 |
<th><?php $this->opt_title('gcaction'); ?></th> |
| 631 |
<td> |
| 632 |
<?php $this->config_select_bool_e('gcaction'); ?> |
| 633 |
</td> |
| 634 |
</tr> |
| 635 |
<tr id="flushaction"> |
| 636 |
<th><?php $this->opt_title('flushaction'); ?></th> |
| 637 |
<td> |
| 638 |
<?php $this->config_select_bool_e('flushaction'); ?> |
| 639 |
</td> |
| 640 |
</tr> |
| 641 |
<tr id="configaction"> |
| 642 |
<th class="border-b"><?php $this->opt_title('configaction'); ?></th> |
| 643 |
<td> |
| 644 |
<?php $this->config_select_bool_e('configaction'); ?> |
| 645 |
</td> |
| 646 |
</tr> |
| 647 |
<tr> |
| 648 |
<td colspan="2" class="stitle"> |
| 649 |
<?php esc_html_e('Plugin Options', 'docket-cache'); ?> |
| 650 |
</td> |
| 651 |
</tr> |
| 652 |
<tr id="autoupdate_toggle"> |
| 653 |
<th><?php $this->opt_title('autoupdate_toggle'); ?></th> |
| 654 |
<td> |
| 655 |
<?php $this->config_select_bool_e('autoupdate_toggle'); ?> |
| 656 |
</td> |
| 657 |
</tr> |
| 658 |
<tr id="checkversion"> |
| 659 |
<th><?php $this->opt_title('checkversion'); ?></th> |
| 660 |
<td> |
| 661 |
<?php $this->config_select_bool_e('checkversion'); ?> |
| 662 |
</td> |
| 663 |
</tr> |
| 664 |
<tr id="flush_shutdown"> |
| 665 |
<th><?php $this->opt_title('flush_shutdown'); ?></th> |
| 666 |
<td> |
| 667 |
<?php $this->config_select_bool_e('flush_shutdown'); ?> |
| 668 |
</td> |
| 669 |
</tr> |
| 670 |
<tr id="opcshutdown"> |
| 671 |
<th><?php $this->opt_title('opcshutdown'); ?></th> |
| 672 |
<td> |
| 673 |
<?php $this->config_select_bool_e('opcshutdown'); ?> |
| 674 |
</td> |
| 675 |
</tr> |
| 676 |
</table> |
| 677 |
</div> |
| 678 |
<div class="row-right"> |
| 679 |
<?php $this->render('resource'); ?> |
| 680 |
</div> |
| 681 |
</div> |
| 682 |
</div> |
| 683 |
|