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( esc_html__( 'You need to set the %s in Settings first before using the crawler', 'litespeed-cache' ), '' . esc_html( 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 ) { $recurrence .= sprintf( $hours > 1 ? esc_html__( '%d hours', 'litespeed-cache' ) : esc_html__( '%d hour', 'litespeed-cache' ), $hours ); } $minutes = (int) floor( ( $crawler_run_interval % 3600 ) / 60 ); if ( $minutes ) { $recurrence .= ' '; $recurrence .= sprintf( $minutes > 1 ? esc_html__( '%d minutes', 'litespeed-cache' ) : esc_html__( '%d minute', 'litespeed-cache' ), $minutes ); } ?>

', '' ); ?>

:

: conf( Base::O_CRAWLER_CRAWL_INTERVAL ) ) ); ?>

:

:

:

: get_server_load() ); ?>

:

:

:

>

$v ) : $hit = ! empty( $summary['crawler_stats'][ $i ][ Crawler::STATUS_HIT ] ) ? (int) $summary['crawler_stats'][ $i ][ Crawler::STATUS_HIT ] : 0; $miss = ! empty( $summary['crawler_stats'][ $i ][ Crawler::STATUS_MISS ] ) ? (int) $summary['crawler_stats'][ $i ][ Crawler::STATUS_MISS ] : 0; $blacklisted = ! empty( $summary['crawler_stats'][ $i ][ Crawler::STATUS_BLACKLIST ] ) ? (int) $summary['crawler_stats'][ $i ][ Crawler::STATUS_BLACKLIST ] : 0; $blacklisted += ! empty( $summary['crawler_stats'][ $i ][ Crawler::STATUS_NOCACHE ] ) ? (int) $summary['crawler_stats'][ $i ][ Crawler::STATUS_NOCACHE ] : 0; $waiting = isset( $summary['crawler_stats'][ $i ][ Crawler::STATUS_WAIT ] ) ? (int) $summary['crawler_stats'][ $i ][ Crawler::STATUS_WAIT ] : (int) ( $summary['list_size'] - $hit - $miss - $blacklisted ); ?>
#
'; } ?> %s ', esc_attr__( 'Waiting', 'litespeed-cache' ), esc_html( $waiting > 0 ? $waiting : '-' ) ); printf( '%s ', esc_attr__( 'Hit', 'litespeed-cache' ), esc_html( $hit > 0 ? $hit : '-' ) ); printf( '%s ', esc_attr__( 'Miss', 'litespeed-cache' ), esc_html( $miss > 0 ? $miss : '-' ) ); printf( '%s ', esc_attr__( 'Blocklisted', 'litespeed-cache' ), esc_html( $blacklisted > 0 ? $blacklisted : '-' ) ); ?> build_toggle( 'litespeed-crawler-' . $i, $__crawler->is_active( $i ) ); ?> conf( Base::O_SERVER_IP ) ) ) : ?>
🚨 :
' . esc_html__( 'running', 'litespeed-cache' ) . ''; } } ?>

=
=
=
=

', '' ); ?>

json_path(); if ( $ajax_url ) : ?>
LiteSpeed Icon