| Server IP : 192.241.186.36 / Your IP : 216.73.216.199 Web Server : Apache/2.4.29 (Ubuntu) System : Linux webserver7 4.15.0-194-generic #205-Ubuntu SMP Fri Sep 16 19:49:27 UTC 2022 x86_64 User : root ( 0) PHP Version : 7.4.32 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/adsonicdigital/wp-content/plugins/wp-optimize/templates/database/ |
Upload File : |
<?php if (!defined('WPO_VERSION')) die('No direct access allowed'); ?>
<h3 class="wpo-first-child"><?php esc_html_e('General settings', 'wp-optimize'); ?></h3>
<div class="wpo-fieldgroup">
<p>
<?php esc_html_e('Whether manually or on a schedule, these settings apply whenever a relevant optimization is run.', 'wp-optimize'); ?>
</p>
<p>
<input name="enable-retention" id="enable-retention" type="checkbox" value ="true" <?php echo ($options->get_option('retention-enabled') == 'true') ? 'checked="checked"' : ''; ?>>
<?php
$retention_period = max((int) $options->get_option('retention-period', '2'), 1);
echo '<label for="enable-retention">';
printf(
esc_html__('Keep last %s weeks data', 'wp-optimize'),
'</label><input id="retention-period" name="retention-period" type="number" step="1" min="2" max="99" value="'.esc_attr($retention_period).'"><label for="enable-retention">'
);
echo '</label>';
?>
<br>
<small><?php echo esc_html__('This option will, where relevant, retain data from the chosen period, and remove any garbage data before that period.', 'wp-optimize').' '.esc_html__('If the option is not active, then all garbage data will be removed.', 'wp-optimize').' '.esc_html__('This will also affect Auto Clean-up process', 'wp-optimize'); ?></small>
</p>
<p>
<input name="enable-revisions-retention" id="enable-revisions-retention" type="checkbox" value ="true" <?php echo ('true' == $options->get_option('revisions-retention-enabled')) ? 'checked="checked"' : ''; ?>>
<?php
$revisions_retention_count = (int) $options->get_option('revisions-retention-count', '2');
echo '<label for="enable-revisions-retention">';
printf(
esc_html__('Always keep %s post revisions', 'wp-optimize'),
'</label><input id="revisions-retention-count" name="revisions-retention-count" type="number" step="1" min="2" max="99" value="'.esc_attr($revisions_retention_count).'"><label for="revisions-retention-count">'
);
echo '</label>';
?>
<br>
<small><?php echo esc_html__('This option will retain specified number of post revisions, and remove other revisions.', 'wp-optimize').' '.esc_html__('If the option is not active, then all garbage data will be removed.', 'wp-optimize').' '.esc_html__('This will also affect Auto Clean-up process', 'wp-optimize'); ?></small>
</p>
<?php WP_Optimize()->include_template('take-a-backup.php', false, array('label' => __('Take a backup with UpdraftPlus before running scheduled optimizations', 'wp-optimize'), 'checkbox_name' => 'enable-auto-backup-scheduled')); ?>
</div>