LiteSpeed Cache - Version 3.2.3.2

Version Description

  • Jun 19 2020 =
  • Page Optimize Hotfix for CSS/JS minify/combine.
Download this release

Release Info

Developer LiteSpeedTech
Plugin Icon 128x128 LiteSpeed Cache
Version 3.2.3.2
Comparing to
See all releases

Code changes from version 3.2.3.1 to 3.2.3.2

litespeed-cache.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: LiteSpeed Cache
4
  * Plugin URI: https://www.litespeedtech.com/products/cache-plugins/wordpress-acceleration
5
  * Description: High-performance page caching and site optimization from LiteSpeed
6
- * Version: 3.2.3.1
7
  * Author: LiteSpeed Technologies
8
  * Author URI: https://www.litespeedtech.com
9
  * License: GPLv3
@@ -33,7 +33,7 @@ if ( class_exists( 'LiteSpeed\Core' ) || defined( 'LSCWP_DIR' ) ) {
33
  return;
34
  }
35
 
36
- ! defined( 'LSCWP_V' ) && define( 'LSCWP_V', '3.2.3.1' );
37
 
38
  ! defined( 'LSCWP_CONTENT_DIR' ) && define( 'LSCWP_CONTENT_DIR', WP_CONTENT_DIR ) ;
39
  ! defined( 'LSCWP_DIR' ) && define( 'LSCWP_DIR', __DIR__ . '/' ) ;// Full absolute path '/var/www/html/***/wp-content/plugins/litespeed-cache/' or MU
3
  * Plugin Name: LiteSpeed Cache
4
  * Plugin URI: https://www.litespeedtech.com/products/cache-plugins/wordpress-acceleration
5
  * Description: High-performance page caching and site optimization from LiteSpeed
6
+ * Version: 3.2.3.2
7
  * Author: LiteSpeed Technologies
8
  * Author URI: https://www.litespeedtech.com
9
  * License: GPLv3
33
  return;
34
  }
35
 
36
+ ! defined( 'LSCWP_V' ) && define( 'LSCWP_V', '3.2.3.2' );
37
 
38
  ! defined( 'LSCWP_CONTENT_DIR' ) && define( 'LSCWP_CONTENT_DIR', WP_CONTENT_DIR ) ;
39
  ! defined( 'LSCWP_DIR' ) && define( 'LSCWP_DIR', __DIR__ . '/' ) ;// Full absolute path '/var/www/html/***/wp-content/plugins/litespeed-cache/' or MU
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: LiteSpeedTech
3
  Tags: caching, optimize, performance, pagespeed, seo, speed, image optimize, compress, object cache, redis, memcached, database cleaner
4
  Requires at least: 4.0
5
  Tested up to: 5.4.2
6
- Stable tag: 3.2.3.1
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl.html
9
 
@@ -244,6 +244,9 @@ The vast majority of plugins and themes are compatible with LiteSpeed Cache. The
244
 
245
  == Changelog ==
246
 
 
 
 
247
  = 3.2.3.1 - Jun 18 2020 =
248
  * **API** New filter `litespeed_buffer_before` and `litespeed_buffer_after`. (#PR243 @joejordanbrown)
249
 
3
  Tags: caching, optimize, performance, pagespeed, seo, speed, image optimize, compress, object cache, redis, memcached, database cleaner
4
  Requires at least: 4.0
5
  Tested up to: 5.4.2
6
+ Stable tag: 3.2.3.2
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl.html
9
 
244
 
245
  == Changelog ==
246
 
247
+ = 3.2.3.2 - Jun 19 2020 =
248
+ * 🔥🐞**Page Optimize** Hotfix for CSS/JS minify/combine.
249
+
250
  = 3.2.3.1 - Jun 18 2020 =
251
  * **API** New filter `litespeed_buffer_before` and `litespeed_buffer_after`. (#PR243 @joejordanbrown)
252
 
src/data.cls.php CHANGED
@@ -441,7 +441,11 @@ class Data extends Instance
441
  public function optm_hash2src( $filename ) {
442
  global $wpdb;
443
 
444
- $res = $wpdb->get_row( $wpdb->prepare( 'SELECT src, refer FROM `' . $this->tb( 'cssjs' ) . '` WHERE `hash_name`=%s', $filename ) );
 
 
 
 
445
 
446
  Debug2::debug2( '[Data] Loaded hash2src ' . $res[ 'src' ] );
447
 
441
  public function optm_hash2src( $filename ) {
442
  global $wpdb;
443
 
444
+ $res = $wpdb->get_row( $wpdb->prepare( 'SELECT src, refer FROM `' . $this->tb( 'cssjs' ) . '` WHERE `hash_name`=%s', $filename ), ARRAY_A );
445
+
446
+ if ( empty( $res[ 'src' ] ) ) {
447
+ return false;
448
+ }
449
 
450
  Debug2::debug2( '[Data] Loaded hash2src ' . $res[ 'src' ] );
451
 
src/optimizer.cls.php CHANGED
@@ -77,7 +77,7 @@ class Optimizer extends Instance
77
  // Search src set in db based on the requested filename
78
  if ( ! $src_list ) {
79
  $optm_data = Data::get_instance()->optm_hash2src( $filename );
80
- if ( ! $optm_data[ 'src' ] || ! is_array( $optm_data[ 'src' ] ) ) {
81
  return false;
82
  }
83
  $src_list = $optm_data[ 'src' ];
77
  // Search src set in db based on the requested filename
78
  if ( ! $src_list ) {
79
  $optm_data = Data::get_instance()->optm_hash2src( $filename );
80
+ if ( empty( $optm_data[ 'src' ] ) || ! is_array( $optm_data[ 'src' ] ) ) {
81
  return false;
82
  }
83
  $src_list = $optm_data[ 'src' ];