lscache_stats(); $health_scores = Health::cls()->scores(); $crawler_summary = Crawler::get_summary(); // Image related info $optm_summary = Img_Optm::get_summary(); $img_count = Img_Optm::cls()->img_count(); if ( ! empty( $img_count[ 'groups_all' ] ) ) { $img_gathered_percentage = 100 - floor( $img_count[ 'groups_not_gathered' ] * 100 / $img_count[ 'groups_all' ] ); } else { $img_gathered_percentage = 0; } if ( ! empty( $img_count[ 'imgs_gathered' ] ) ) { $img_finished_percentage = 100 - floor( $img_count[ 'img.' . Img_Optm::STATUS_RAW ] * 100 / $img_count[ 'imgs_gathered' ] ); } else { $img_finished_percentage = 0; } $cloud_summary = Cloud::get_summary(); $css_summary = CSS::get_summary(); $placeholder_summary = Placeholder::get_summary(); $ccss_count = count( $this->load_queue( 'ccss' ) ); $ucss_count = count( $this->load_queue( 'ucss' ) ); $placeholder_queue_count = count( $this->load_queue( 'lqip' ) ); ?>


__( 'Image Optimization', 'litespeed-cache' ), 'page_optm' => __( 'Page Optimization', 'litespeed-cache' ), 'cdn' => __( 'CDN Bandwidth', 'litespeed-cache' ), 'lqip' => __( 'Low Quality Image Placeholder', 'litespeed-cache' ), ); foreach ( $cat_list as $svc => $title ) : $finished_percentage = 0; $total_used = $used = $quota = $pag_used = $pag_total = '-'; $pag_width = 0; $percentage_bg = 'success'; $pag_txt_color = ''; $usage = false; if ( ! empty( $cloud_summary[ 'usage.' . $svc ] ) ) { $usage = $cloud_summary[ 'usage.' . $svc ]; $finished_percentage = floor( $usage[ 'used' ] * 100 / $usage[ 'quota' ] ); $used = (int)$usage[ 'used' ]; $quota = (int)$usage[ 'quota' ]; $pag_used = ! empty( $usage[ 'pag_used' ] ) ? (int)$usage[ 'pag_used' ] : 0; $pag_bal = ! empty( $usage[ 'pag_bal' ] ) ? (int)$usage[ 'pag_bal' ] : 0; $pag_total = $pag_used + $pag_bal; if ( ! empty( $usage[ 'total_used' ] ) ) { $total_used = (int)$usage[ 'total_used' ]; } if ( $pag_total ) { $pag_width = round( $pag_used / $pag_total * 100 ) . '%'; } if ( $finished_percentage > 85 ) { $percentage_bg = 'warning'; if ( $finished_percentage > 95 ) { $percentage_bg = 'danger'; if ( $pag_bal ) { // is using PAG quota $percentage_bg = 'warning'; $pag_txt_color = 'litespeed-success'; } } } if ( $svc == 'cdn' ) { // $used = Utility::real_size( $used * 1000000 * 100, true ); // $quota = Utility::real_size( $quota * 1000000 * 100, true ); // $pag_used = Utility::real_size( $pag_used * 1000000 * 100, true ); // $pag_bal = Utility::real_size( $pag_bal * 1000000 * 100, true ); } } ?>

of

0 ) { ?>

:

$sub_usage ) : ?> :

: / ∞

= 0 && isset( $usage[ 'daily_quota' ] ) && $usage[ 'daily_quota' ] >= 0 ) { ?>

: /


conf( $id ) ) : ?> ON OFF

get_cls_of_pagescore( $health_scores[ 'score_before' ] ) ); ?>

get_cls_of_pagescore( $health_scores[ 'score_after' ] ) ); ?>

%

of

of

: ()

: ()

:

:

Lang::title( Base::O_IMG_OPTM_AUTO ), Base::O_IMG_OPTM_CRON => Lang::title( Base::O_IMG_OPTM_CRON ), ); foreach ( $cache_list as $id => $title ) : ?>

conf( $id ) ) : ?> ON OFF

__( 'Public Cache', 'litespeed-cache' ), Base::O_CACHE_PRIV => __( 'Private Cache', 'litespeed-cache' ), Base::O_OBJECT => __( 'Object Cache', 'litespeed-cache' ), Base::O_CACHE_BROWSER => __( 'Browser Cache', 'litespeed-cache' ), ); foreach ( $cache_list as $id => $title ) : ?>

conf( $id ) ) : ?> ON OFF

$val ) : ?>

: $val" : '-'; ?>

' . Utility::readable_time( $css_summary[ 'last_request_ccss' ] ) . ''; ?>

' . $css_summary[ 'last_spent_ccss' ] . 's'; ?>

:

' . Utility::readable_time( $css_summary[ 'last_request_ucss' ] ) . ''; ?>

' . $css_summary[ 'last_spent_ucss' ] . 's'; ?>

:

' . Utility::readable_time( $placeholder_summary[ 'last_request' ] ) . ''; ?>

' . $placeholder_summary[ 'last_spent' ] . 's'; ?>

:

list_crawlers() );?>

:

:

:

:

Last crawled: %s item(s)', 'litespeed-cache'), $crawler_summary[ 'last_crawled' ] ); ?>