File: /www/wwwroot/www.scdc-marine.com/wp-content/plugins/Static-Html-Output/views/tab_advanced.phtml
<div class="advanced_settings" style="display:none;">
<!-- 处理中 Processing -->
<table class="form-table">
<tbody>
<tr>
<th scope="row">
<label for="crawl_increment"><?php echo __('处理的文件量', 'static-html-output-plugin');?></label>
</th>
<td>
<select name="crawl_increment" id="crawl_increment">
<?php
// TODO: shift this into helper function for select
$increments = array(1, 5, 10, 25, 50, 100, 500, 1000, 999999);
foreach($increments as $increment) :
if ($increment == 999999): ?>
<option value="999999"<?php echo $this->options->crawl_increment == $increment ? ' selected' : ''; ?>>Maximum</option>
<?php else: ?>
<option value="<?php echo $increment; ?>"<?php echo $this->options->crawl_increment == $increment ? ' selected' : ''; ?>><?php echo $increment; ?></option>
<?php endif;
endforeach; ?>
</select><br>
<p>默认情况下,该值设置为1,以便允许在资源不足的环境(如共享主机服务器)上导出。每个增量是服务器在浏览器发送每个请求时尝试处理的文件量。增加这将加快您的出口,通过处理更多的是一个时间。如果由于达到资源(内存、CPU)限制而导致导出失败,请尝试将其设置为较低的数字。</p>
</td>
</tr>
<tr>
<th scope="row">
<label for="deployBatchSize"><?php echo __('部署的文件量', 'static-html-output-plugin');?></label>
</th>
<td>
<select name="deployBatchSize" id="deployBatchSize">
<?php
// TODO: shift this into helper function for select
$increments = array(1, 5, 10, 25, 50, 100, 500, 1000, 999999);
foreach($increments as $increment) :
if ($increment == 999999): ?>
<option value="999999"<?php echo $this->options->deployBatchSize == $increment ? ' selected' : ''; ?>>Maximum</option>
<?php else: ?>
<option value="<?php echo $increment; ?>"<?php echo $this->options->deployBatchSize == $increment ? ' selected' : ''; ?>><?php echo $increment; ?></option>
<?php endif;
endforeach; ?>
</select><br>
<p>默认情况下,该值设置为1,以避免在受限环境(如共享主机服务器)上执行限制超时。每个增量是服务器在每次请求时尝试部署的文件量。增加这将加快您的出口,通过处理更多的是一个时间。如果由于执行限制或API速率限制而导致导出失败,请尝试将其设置为较低的数字。</p>
</td>
</tr>
<tr>
<th scope="row">
<label for="delayBetweenAPICalls"><?php echo __('API请求延迟', 'static-html-output-plugin');?></label>
</th>
<td>
<select name="delayBetweenAPICalls" id="delayBetweenAPICalls">
<?php
// TODO: shift this into helper function for select
$increments = array(0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1, 2, 3, 4, 10);
foreach($increments as $increment) : ?>
<option value="<?php echo $increment; ?>"<?php echo $this->options->delayBetweenAPICalls == $increment ? ' selected' : ''; ?>><?php echo $increment; ?></option>
<?php endforeach; ?>
</select><br>
<p>默认情况下,该值设置为0,但如果部署太快地命中GitLab的API,则可以增加该值以在每个API请求之间增加延迟。</p>
</td>
</tr>
<tr>
<th scope="row">
<label for="completionEmail"><?php echo __('完成后发送电子邮件', 'static-html-output-plugin');?></label>
</th>
<td>
<?php
$current_user = wp_get_current_user();
$to = $current_user->user_email;
$tpl->displayCheckbox($this, 'completionEmail', '将发送到: ' . $to); ?>
<p>部署过程完成时发出警报。</p>
</td>
</tr>
<tr>
<th scope="row">
<label for="delete_deploy_cache_button"><?php echo __('删除部署缓存', 'static-html-output-plugin');?></label>
</th>
<td>
<button id="delete_deploy_cache_button" type="button" class="btn-primary button">删除部署缓存</button>
<p>在部署时,WP2Static将检查每个文件,以查看自上次部署以来是否发生了更改。它将基于此信息跳过未更改的文件。如果要强制进行未缓存的部署,请单击此按钮,所有缓存都将清空,需要在下次运行时进行完全部署。</p>
</td>
</tr>
<tr>
<th scope="row">
<label for="debug_mode"><?php echo __('启用调试模式', 'static-html-output-plugin');?></label>
</th>
<td>
<?php $tpl->displayCheckbox($this, 'debug_mode', ''); ?>
<p>将减慢操作速度,但将详细输出提供给“日志”选项卡中的导出日志。在导出失败时使用此选项可帮助查明原因。</p>
</td>
</tr>
</tbody>
</table>
</div> <!-- end advanced settings -->