allowance( Cloud::SVC_IMG_OPTM ); $img_optm = Img_Optm::cls(); $wet_limit = $img_optm->wet_limit(); $img_count = $img_optm->img_count(); $optm_summary = Img_Optm::get_summary(); list($last_run, $is_running) = $img_optm->cron_running( false ); $finished_percentage = 0; if ( $img_count['groups_all'] ) { $finished_percentage = 100 - floor( $img_count['groups_new'] * 100 / $img_count['groups_all'] ); } if ( 100 === $finished_percentage && $img_count['groups_new'] ) { $finished_percentage = 99; } $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 ]; } $imgoptm_service_hot = $this->cls( 'Cloud' )->service_hot( Cloud::SVC_IMG_OPTM . '-' . Img_Optm::CLOUD_ACTION_NEW_REQ ); ?>
' . intval( $allowance ) . '' ); ?>
' . esc_html( $wet_limit ) . ''; ?>
:
:
()
:
()
:
()
' . esc_html( Utility::readable_time( $last_run ) ) . '' ); ?>
:
()
%4$s', ( $unfinished_num ? esc_url( Utility::build_url( Router::ACTION_IMG_OPTM, Img_Optm::TYPE_CLEAN ) ) : 'javascript:;' ), esc_html__( 'Remove all previous unfinished image optimization requests.', 'litespeed-cache' ), ( $unfinished_num ? '' : ' disabled' ), esc_html__( 'Clean Up Unfinished Data', 'litespeed-cache' ) . ( $unfinished_num ? ': ' . esc_html( Admin_Display::print_plural( $unfinished_num, 'image' ) ) : '' ) ); ?>
' . esc_html( Utility::readable_time( $optm_summary['bk_summary']['date'] ) ) . ''; ?>
' . intval( $optm_summary['bk_summary']['count'] ) . ''; ?>
' . esc_html( Utility::real_size( $optm_summary['bk_summary']['sum'] ) ) . ''; ?>
🚨
' . esc_html( Utility::readable_time( $optm_summary['rmbk_summary']['date'] ) ) . ''; ?>
' . esc_html( $optm_summary['rmbk_summary']['count'] ) . ''; ?>
' . esc_html( Utility::real_size( $optm_summary['rmbk_summary']['sum'] ) ) . ''; ?>