list_crawlers();
$summary = Crawler::get_summary();
if ($summary['curr_crawler'] >= count($crawler_list)) {
$summary['curr_crawler'] = 0;
}
$is_running = time() - $summary['is_running'] <= 900;
$disabled = Router::can_crawl() ? '' : 'disabled';
$disabled_tip = '';
if (!$this->conf(Base::O_CRAWLER_SITEMAP)) {
$disabled = 'disabled';
$disabled_tip = '' . sprintf(__('You need to set the %s in Settings first before using the crawler', 'litespeed-cache'), '' . Lang::title(Base::O_CRAWLER_SITEMAP) . '
') . '';
}
$CRAWLER_RUN_INTERVAL = defined('LITESPEED_CRAWLER_RUN_INTERVAL') ? LITESPEED_CRAWLER_RUN_INTERVAL : 600;
if ($CRAWLER_RUN_INTERVAL > 0) :
$recurrence = '';
$hours = (int)floor($CRAWLER_RUN_INTERVAL / 3600);
if ($hours) {
if ($hours > 1) {
$recurrence .= sprintf(__('%d hours', 'litespeed-cache'), $hours);
} else {
$recurrence .= sprintf(__('%d hour', 'litespeed-cache'), $hours);
}
}
$minutes = (int)floor(($CRAWLER_RUN_INTERVAL % 3600) / 60);
if ($minutes) {
$recurrence .= ' ';
if ($minutes > 1) {
$recurrence .= sprintf(__('%d minutes', 'litespeed-cache'), $minutes);
} else {
$recurrence .= sprintf(__('%d minute', 'litespeed-cache'), $minutes);
}
}
?>
Introduction for Enabling the Crawler for detailed information.', 'litespeed-cache'), 'href="https://docs.litespeedtech.com/lscache/lscwp/admin/#enabling-and-limiting-the-crawler" target="_blank"'); ?>
:
: conf(Base::O_CRAWLER_CRAWL_INTERVAL)); ?>
:
:
:
: get_server_load(); ?>
:
:
Last crawled: %s item(s)', 'litespeed-cache'), $summary['last_crawled']); ?>
" . __('Reset position', 'litespeed-cache') . ""; $href = Router::can_crawl() ? Utility::build_url(Router::ACTION_CRAWLER, Crawler::TYPE_START) : 'javascript:;'; echo " " . __('Manually run', 'litespeed-cache') . ""; echo $disabled_tip; ?>
# | |||||
---|---|---|---|---|---|
"; } ?> | ' . ($waiting ?: '-') . ' '; ?> ' . ($hit ?: '-') . ' '; ?> ' . ($miss ?: '-') . ' '; ?> ' . ($blacklisted ?: '-') . ' '; ?> |
build_toggle('litespeed-crawler-' . $i, $__crawler->is_active($i)); ?>
conf(Base::O_SERVER_IP))) : ?>
🚨
:
|
" . __('running', 'litespeed-cache') . ""; } } ?> |
=
=
=
=