LiteSpeed Cache - Version 2.9.8.3

Version Description

  • Jul 9 2019 =
  • CSS: Enhanced the CSS Minify compatibility for CSS with missing closing bracket syntax errors. (@fa508210020)
  • : Crawler now supports both cookie and no-cookie cases. (@tabare)
  • CCSS: Enhanced compatibility with requested pages where meta info size exceeds 8k. (@Joe B)
  • CCSS: No longer processing "font" or "import" directives as they are not considered critical. (@Ankit @Joe B)
  • IAPI: Removed IPv6 from all servers to avoid invalid firewall whitelist.
Download this release

Release Info

Developer hailite
Plugin Icon 128x128 LiteSpeed Cache
Version 2.9.8.3
Comparing to
See all releases

Code changes from version 2.9.8.2 to 2.9.8.3

inc/crawler.class.php CHANGED
@@ -567,7 +567,7 @@ class LiteSpeed_Cache_Crawler
567
 
568
  foreach ( explode( "\n", $v ) as $v2 ) {
569
  $v2 = trim( $v2 ) ;
570
- $crawler_factors[ $this_cookie_key ][ $v2 ] = "<font title='Cookie'>🍪</font>$k=$v2" ;
571
  }
572
  }
573
 
567
 
568
  foreach ( explode( "\n", $v ) as $v2 ) {
569
  $v2 = trim( $v2 ) ;
570
+ $crawler_factors[ $this_cookie_key ][ $v2 ] = $v2 ? "<font title='Cookie'>🍪</font>$k=$v2" : '' ;
571
  }
572
  }
573
 
inc/litespeed-cache.class.php CHANGED
@@ -26,7 +26,7 @@ class LiteSpeed_Cache
26
  const NAME = 'LiteSpeed Cache' ;
27
  const PLUGIN_NAME = 'litespeed-cache' ;
28
  const PLUGIN_FILE = 'litespeed-cache/litespeed-cache.php' ;
29
- const PLUGIN_VERSION = '2.9.8.2' ;
30
 
31
  const PAGE_EDIT_HTACCESS = 'lscache-edit-htaccess' ;
32
 
26
  const NAME = 'LiteSpeed Cache' ;
27
  const PLUGIN_NAME = 'litespeed-cache' ;
28
  const PLUGIN_FILE = 'litespeed-cache/litespeed-cache.php' ;
29
+ const PLUGIN_VERSION = '2.9.8.3' ;
30
 
31
  const PAGE_EDIT_HTACCESS = 'lscache-edit-htaccess' ;
32
 
includes/litespeed-cache-crawler.class.php CHANGED
@@ -567,7 +567,7 @@ class LiteSpeed_Cache_Crawler
567
 
568
  foreach ( explode( "\n", $v ) as $v2 ) {
569
  $v2 = trim( $v2 ) ;
570
- $crawler_factors[ $this_cookie_key ][ $v2 ] = "<font title='Cookie'>🍪</font>$k=$v2" ;
571
  }
572
  }
573
 
567
 
568
  foreach ( explode( "\n", $v ) as $v2 ) {
569
  $v2 = trim( $v2 ) ;
570
+ $crawler_factors[ $this_cookie_key ][ $v2 ] = $v2 ? "<font title='Cookie'>🍪</font>$k=$v2" : '' ;
571
  }
572
  }
573
 
includes/litespeed-cache.class.php CHANGED
@@ -26,7 +26,7 @@ class LiteSpeed_Cache
26
  const NAME = 'LiteSpeed Cache' ;
27
  const PLUGIN_NAME = 'litespeed-cache' ;
28
  const PLUGIN_FILE = 'litespeed-cache/litespeed-cache.php' ;
29
- const PLUGIN_VERSION = '2.9.8.2' ;
30
 
31
  const PAGE_EDIT_HTACCESS = 'lscache-edit-htaccess' ;
32
 
26
  const NAME = 'LiteSpeed Cache' ;
27
  const PLUGIN_NAME = 'litespeed-cache' ;
28
  const PLUGIN_FILE = 'litespeed-cache/litespeed-cache.php' ;
29
+ const PLUGIN_VERSION = '2.9.8.3' ;
30
 
31
  const PAGE_EDIT_HTACCESS = 'lscache-edit-htaccess' ;
32
 
lib/css_min.class.php CHANGED
@@ -511,6 +511,8 @@ class Minifier
511
 
512
  while (($blockStartPos = strpos($css, '{', $searchOffset)) !== false) {
513
  $blockEndPos = strpos($css, '}', $blockStartPos);
 
 
514
  $nextBlockStartPos = strpos($css, '{', $blockStartPos + 1);
515
  $ret .= substr($css, $substrOffset, $blockStartPos - $substrOffset);
516
 
511
 
512
  while (($blockStartPos = strpos($css, '{', $searchOffset)) !== false) {
513
  $blockEndPos = strpos($css, '}', $blockStartPos);
514
+ if ( ! $blockEndPos ) throw new \Exception( 'CSS parse error' ) ;
515
+
516
  $nextBlockStartPos = strpos($css, '{', $blockStartPos + 1);
517
  $ret .= substr($css, $substrOffset, $blockStartPos - $substrOffset);
518
 
lib/litespeed/litespeed-crawler.class.php CHANGED
@@ -621,9 +621,14 @@ class Litespeed_Crawler
621
 
622
  $cookies = array() ;
623
  foreach ( $this->_cookies as $k => $v ) {
 
 
 
624
  $cookies[] = "$k=" . urlencode( $v ) ;
625
  }
626
- $options[ CURLOPT_COOKIE ] = implode( '; ', $cookies ) ;
 
 
627
 
628
  return $options ;
629
  }
621
 
622
  $cookies = array() ;
623
  foreach ( $this->_cookies as $k => $v ) {
624
+ if ( ! $v ) {
625
+ continue ;
626
+ }
627
  $cookies[] = "$k=" . urlencode( $v ) ;
628
  }
629
+ if ( $cookies ) {
630
+ $options[ CURLOPT_COOKIE ] = implode( '; ', $cookies ) ;
631
+ }
632
 
633
  return $options ;
634
  }
litespeed-cache.php CHANGED
@@ -15,7 +15,7 @@
15
  * Plugin Name: LiteSpeed Cache
16
  * Plugin URI: https://www.litespeedtech.com/products/cache-plugins/wordpress-acceleration
17
  * Description: High-performance page caching and site optimization from LiteSpeed
18
- * Version: 2.9.8.2
19
  * Author: LiteSpeed Technologies
20
  * Author URI: https://www.litespeedtech.com
21
  * License: GPLv3
15
  * Plugin Name: LiteSpeed Cache
16
  * Plugin URI: https://www.litespeedtech.com/products/cache-plugins/wordpress-acceleration
17
  * Description: High-performance page caching and site optimization from LiteSpeed
18
+ * Version: 2.9.8.3
19
  * Author: LiteSpeed Technologies
20
  * Author URI: https://www.litespeedtech.com
21
  * License: GPLv3
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.2.1
6
- Stable tag: 2.9.8.2
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl.html
9
 
@@ -289,6 +289,13 @@ Click on the `Advanced View` link at the top of the page, and several more tabs
289
 
290
  == Changelog ==
291
 
 
 
 
 
 
 
 
292
  = 2.9.8.2 - Jun 17 2019 =
293
  * 🔥🐞 <strong>3rd</strong>: Fixed PHP 5.3 compatibility issue with Facetwp.
294
 
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.2.1
6
+ Stable tag: 2.9.8.3
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl.html
9
 
289
 
290
  == Changelog ==
291
 
292
+ = 2.9.8.3 - Jul 9 2019 =
293
+ * <strong>CSS</strong>: Enhanced the CSS Minify compatibility for CSS with missing closing bracket syntax errors. (@fa508210020)
294
+ * 🕷️: Crawler now supports both cookie and no-cookie cases. (@tabare)
295
+ * <strong>CCSS</strong>: Enhanced compatibility with requested pages where meta info size exceeds 8k. (@Joe B)
296
+ * <strong>CCSS</strong>: No longer processing "font" or "import" directives as they are not considered critical. (@Ankit @Joe B)
297
+ * <strong>IAPI</strong>: Removed IPv6 from all servers to avoid invalid firewall whitelist.
298
+
299
  = 2.9.8.2 - Jun 17 2019 =
300
  * 🔥🐞 <strong>3rd</strong>: Fixed PHP 5.3 compatibility issue with Facetwp.
301