allowance( Cloud::SVC_IMG_OPTM ); $__img_optm = Img_Optm::cls(); $wet_limit = $__img_optm->wet_limit(); $img_count = $__img_optm->img_count(); $need_gather = $__img_optm->need_gather(); $optm_summary = Img_Optm::get_summary(); list( $last_run, $is_running ) = $__img_optm->cron_running( false ); if ( ! empty( $img_count[ 'groups_all' ] ) ) { $gathered_percentage = 100 - floor( $img_count[ 'groups_not_gathered' ] * 100 / $img_count[ 'groups_all' ] ); if ( $gathered_percentage == 100 && $img_count[ 'groups_not_gathered' ] ) { $gathered_percentage = 99; } } else { $gathered_percentage = 0; } if ( ! empty( $img_count[ 'imgs_gathered' ] ) ) { $finished_percentage = 100 - floor( $img_count[ 'img.' . Img_Optm::STATUS_RAW ] * 100 / $img_count[ 'imgs_gathered' ] ); if ( $finished_percentage == 100 && $img_count[ 'img.' . Img_Optm::STATUS_RAW ] ) { $finished_percentage = 99; } } else { $finished_percentage = 0; } $unfinished_num = 0; if ( ! empty( $img_count[ 'img.' . Img_Optm::STATUS_REQUESTED ] ) ) { $unfinished_num += $img_count[ 'img.' . Img_Optm::STATUS_REQUESTED ]; } if ( ! empty( $img_count[ 'img.' . Img_Optm::STATUS_NOTIFIED ] ) ) { $unfinished_num += $img_count[ 'img.' . Img_Optm::STATUS_NOTIFIED ]; } if ( ! empty( $img_count[ 'img.' . Img_Optm::STATUS_ERR_FETCH ] ) ) { $unfinished_num += $img_count[ 'img.' . Img_Optm::STATUS_ERR_FETCH ]; } ?>
' . intval( $allowance ) . '' ); ?>
' . $wet_limit . ''; ?>
:
()
:
()
' . Utility::readable_time( $last_run ) . '' ); ?>
:
()
:
()
%4$s', ($unfinished_num ? Utility::build_url( Router::ACTION_IMG_OPTM, Img_Optm::TYPE_CLEAN ) : 'javascript:;'), __( 'Remove all previous unfinished image optimization requests.', 'litespeed-cache' ), ($unfinished_num ? '' : ' disabled'), __( 'Clean Up Unfinished Data', 'litespeed-cache' ) . ( $unfinished_num ? ': ' . Admin_Display::print_plural( $unfinished_num, 'image' ) : '') ); ?>
' . Utility::readable_time( $optm_summary[ 'bk_summary' ][ 'date' ] ) . ''; ?>
' . intval( $optm_summary[ 'bk_summary' ][ 'count' ] ) . ''; ?>
' . Utility::real_size( $optm_summary[ 'bk_summary' ][ 'sum' ] ) . ''; ?>
🚨
' . Utility::readable_time( $optm_summary[ 'rmbk_summary' ][ 'date' ] ) . ''; ?>
' . $optm_summary[ 'rmbk_summary' ][ 'count' ] . ''; ?>
' . Utility::real_size( $optm_summary[ 'rmbk_summary' ][ 'sum' ] ) . ''; ?>