File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 * Plugin Name: LiteSpeed Cache
44 * Plugin URI: https://www.litespeedtech.com/products/cache-plugins/wordpress-acceleration
55 * Description: High-performance page caching and site optimization from LiteSpeed
6- * Version: 7.9.1-b4
6+ * Version: 7.9.1-b5
77 * Author: LiteSpeed Technologies
88 * Author URI: https://www.litespeedtech.com
99 * License: GPLv3
3535 return ;
3636}
3737
38- ! defined ( 'LSCWP_V ' ) && define ( 'LSCWP_V ' , '7.9.1-b4 ' );
38+ ! defined ( 'LSCWP_V ' ) && define ( 'LSCWP_V ' , '7.9.1-b5 ' );
3939
4040! defined ( 'LSCWP_CONTENT_DIR ' ) && define ( 'LSCWP_CONTENT_DIR ' , WP_CONTENT_DIR );
4141! defined ( 'LSCWP_DIR ' ) && define ( 'LSCWP_DIR ' , __DIR__ . '/ ' ); // Full absolute path '/var/www/html/***/wp-content/plugins/litespeed-cache/' or MU
Original file line number Diff line number Diff line change @@ -119,6 +119,11 @@ public function wet_limit() {
119119 public function new_req () {
120120 global $ wpdb ;
121121
122+ if ( ! $ this ->_format && ! $ this ->conf ( self ::O_IMG_OPTM_ORI ) ) {
123+ Admin_Display::error ( __ ( 'Please enable Optimize Original Images or WebP/AVIF before sending an optimization request. ' , 'litespeed-cache ' ) );
124+ return ;
125+ }
126+
122127 // check if is running
123128 if ( ! empty ( $ this ->_summary ['is_running ' ] ) && time () - $ this ->_summary ['is_running ' ] < apply_filters ( 'litespeed_imgoptm_new_req_interval ' , 3600 ) ) {
124129 self ::debug ( 'The previous req was in 3600s. ' );
You can’t perform that action at this time.
0 commit comments