LiteSpeed Cache - Version 2.1.1.1

Version Description

  • Mar 21 2018 =
  • [BUGFIX] Fixed issue where activation failed to add rules to .htaccess.
  • [BUGFIX] Fixed issue where 304 header was blank on feed page refresh.
Download this release

Release Info

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

Code changes from version 2.1.1 to 2.1.1.1

admin/tpl/inc/banner_promo.slack.php CHANGED
File without changes
css/iziModal.min.css CHANGED
File without changes
img/slack-logo.png CHANGED
File without changes
inc/cdn/cloudflare.class.php CHANGED
File without changes
inc/config.class.php CHANGED
@@ -1026,7 +1026,9 @@ class LiteSpeed_Cache_Config
1026
 
1027
  $res = add_option( self::OPTION_NAME, $this->get_default_options() ) ;
1028
 
1029
- defined( 'LSCWP_LOG' ) && LiteSpeed_Cache_Log::debug( "plugin_activation update option = " . var_export( $res, true ) ) ;
 
 
1030
 
1031
  if ( is_multisite() ) {
1032
 
@@ -1037,26 +1039,23 @@ class LiteSpeed_Cache_Config
1037
  }
1038
  return ;
1039
  }
1040
- else {
1041
- // Network admin should make a wapper to avoid subblogs cache not work
1042
- LiteSpeed_Cache_Admin_Rules::get_instance()->insert_ls_wrapper() ;
1043
- }
1044
 
1045
  $options = $this->get_site_options() ;
1046
 
1047
- if ( $res == true || $options[ self::NETWORK_OPID_ENABLED ] == false ) {
1048
- return ;
 
1049
  }
1050
 
1051
  }
1052
- elseif ( $res == false && ! defined( 'LITESPEED_ON' ) ) {// todo: why do this
1053
- return ;
1054
- }
1055
  else {
1056
  $options = $this->get_options() ;
 
 
 
1057
  }
1058
 
1059
- $res = LiteSpeed_Cache_Admin_Rules::get_instance()->update( $options ) ;
1060
 
1061
  if ( $res !== true ) {
1062
  if ( ! is_array( $res ) ) {
1026
 
1027
  $res = add_option( self::OPTION_NAME, $this->get_default_options() ) ;
1028
 
1029
+ defined( 'LSCWP_LOG' ) && LiteSpeed_Cache_Log::debug( "[Config] plugin_activation update option = " . var_export( $res, true ) ) ;
1030
+
1031
+ $disable_lscache = false ;
1032
 
1033
  if ( is_multisite() ) {
1034
 
1039
  }
1040
  return ;
1041
  }
 
 
 
 
1042
 
1043
  $options = $this->get_site_options() ;
1044
 
1045
+ if ( ! $options[ self::NETWORK_OPID_ENABLED ] ) {
1046
+ // NOTE: Network admin still need to make a lscache wrapper to avoid subblogs cache not work
1047
+ $disable_lscache = true ;
1048
  }
1049
 
1050
  }
 
 
 
1051
  else {
1052
  $options = $this->get_options() ;
1053
+ if ( ! $options[ self::OPID_ENABLED_RADIO ] ) {
1054
+ $disable_lscache = true ;
1055
+ }
1056
  }
1057
 
1058
+ $res = LiteSpeed_Cache_Admin_Rules::get_instance()->update( $options, $disable_lscache ) ;
1059
 
1060
  if ( $res !== true ) {
1061
  if ( ! is_array( $res ) ) {
inc/data_structure/img_optm.sql CHANGED
File without changes
inc/data_structure/optm.sql CHANGED
File without changes
inc/img_optm.class.php CHANGED
File without changes
inc/litespeed-cache.class.php CHANGED
@@ -19,7 +19,7 @@ class LiteSpeed_Cache
19
  private static $_instance ;
20
 
21
  const PLUGIN_NAME = 'litespeed-cache' ;
22
- const PLUGIN_VERSION = '2.1.1' ;
23
 
24
  const PAGE_EDIT_HTACCESS = 'lscache-edit-htaccess' ;
25
 
19
  private static $_instance ;
20
 
21
  const PLUGIN_NAME = 'litespeed-cache' ;
22
+ const PLUGIN_VERSION = '2.1.1.1' ;
23
 
24
  const PAGE_EDIT_HTACCESS = 'lscache-edit-htaccess' ;
25
 
inc/tag.class.php CHANGED
@@ -83,11 +83,11 @@ class LiteSpeed_Cache_Tag
83
  *
84
  * @since 1.0.13.1
85
  * @access public
86
- * @param $header
87
  * @param $code
88
  * @return $eror_status
89
  */
90
- public static function check_error_codes( $header, $code )
91
  {
92
  $ttl_403 = LiteSpeed_Cache::config( LiteSpeed_Cache_Config::OPID_403_TTL ) ;
93
  $ttl_500 = LiteSpeed_Cache::config( LiteSpeed_Cache_Config::OPID_500_TTL ) ;
@@ -107,7 +107,9 @@ class LiteSpeed_Cache_Tag
107
  elseif ( $code > 400 ) {
108
  self::$_error_status = $code ;
109
  }
110
- return self::$_error_status ;
 
 
111
  }
112
 
113
  /**
83
  *
84
  * @since 1.0.13.1
85
  * @access public
86
+ * @param $status_header
87
  * @param $code
88
  * @return $eror_status
89
  */
90
+ public static function check_error_codes( $status_header, $code )
91
  {
92
  $ttl_403 = LiteSpeed_Cache::config( LiteSpeed_Cache_Config::OPID_403_TTL ) ;
93
  $ttl_500 = LiteSpeed_Cache::config( LiteSpeed_Cache_Config::OPID_500_TTL ) ;
107
  elseif ( $code > 400 ) {
108
  self::$_error_status = $code ;
109
  }
110
+
111
+ // Give the default status_header back
112
+ return $status_header ;
113
  }
114
 
115
  /**
includes/litespeed-cache-config.class.php CHANGED
@@ -1026,7 +1026,9 @@ class LiteSpeed_Cache_Config
1026
 
1027
  $res = add_option( self::OPTION_NAME, $this->get_default_options() ) ;
1028
 
1029
- defined( 'LSCWP_LOG' ) && LiteSpeed_Cache_Log::debug( "plugin_activation update option = " . var_export( $res, true ) ) ;
 
 
1030
 
1031
  if ( is_multisite() ) {
1032
 
@@ -1037,26 +1039,23 @@ class LiteSpeed_Cache_Config
1037
  }
1038
  return ;
1039
  }
1040
- else {
1041
- // Network admin should make a wapper to avoid subblogs cache not work
1042
- LiteSpeed_Cache_Admin_Rules::get_instance()->insert_ls_wrapper() ;
1043
- }
1044
 
1045
  $options = $this->get_site_options() ;
1046
 
1047
- if ( $res == true || $options[ self::NETWORK_OPID_ENABLED ] == false ) {
1048
- return ;
 
1049
  }
1050
 
1051
  }
1052
- elseif ( $res == false && ! defined( 'LITESPEED_ON' ) ) {// todo: why do this
1053
- return ;
1054
- }
1055
  else {
1056
  $options = $this->get_options() ;
 
 
 
1057
  }
1058
 
1059
- $res = LiteSpeed_Cache_Admin_Rules::get_instance()->update( $options ) ;
1060
 
1061
  if ( $res !== true ) {
1062
  if ( ! is_array( $res ) ) {
1026
 
1027
  $res = add_option( self::OPTION_NAME, $this->get_default_options() ) ;
1028
 
1029
+ defined( 'LSCWP_LOG' ) && LiteSpeed_Cache_Log::debug( "[Config] plugin_activation update option = " . var_export( $res, true ) ) ;
1030
+
1031
+ $disable_lscache = false ;
1032
 
1033
  if ( is_multisite() ) {
1034
 
1039
  }
1040
  return ;
1041
  }
 
 
 
 
1042
 
1043
  $options = $this->get_site_options() ;
1044
 
1045
+ if ( ! $options[ self::NETWORK_OPID_ENABLED ] ) {
1046
+ // NOTE: Network admin still need to make a lscache wrapper to avoid subblogs cache not work
1047
+ $disable_lscache = true ;
1048
  }
1049
 
1050
  }
 
 
 
1051
  else {
1052
  $options = $this->get_options() ;
1053
+ if ( ! $options[ self::OPID_ENABLED_RADIO ] ) {
1054
+ $disable_lscache = true ;
1055
+ }
1056
  }
1057
 
1058
+ $res = LiteSpeed_Cache_Admin_Rules::get_instance()->update( $options, $disable_lscache ) ;
1059
 
1060
  if ( $res !== true ) {
1061
  if ( ! is_array( $res ) ) {
includes/litespeed-cache-tag.class.php CHANGED
@@ -83,11 +83,11 @@ class LiteSpeed_Cache_Tag
83
  *
84
  * @since 1.0.13.1
85
  * @access public
86
- * @param $header
87
  * @param $code
88
  * @return $eror_status
89
  */
90
- public static function check_error_codes( $header, $code )
91
  {
92
  $ttl_403 = LiteSpeed_Cache::config( LiteSpeed_Cache_Config::OPID_403_TTL ) ;
93
  $ttl_500 = LiteSpeed_Cache::config( LiteSpeed_Cache_Config::OPID_500_TTL ) ;
@@ -107,7 +107,9 @@ class LiteSpeed_Cache_Tag
107
  elseif ( $code > 400 ) {
108
  self::$_error_status = $code ;
109
  }
110
- return self::$_error_status ;
 
 
111
  }
112
 
113
  /**
83
  *
84
  * @since 1.0.13.1
85
  * @access public
86
+ * @param $status_header
87
  * @param $code
88
  * @return $eror_status
89
  */
90
+ public static function check_error_codes( $status_header, $code )
91
  {
92
  $ttl_403 = LiteSpeed_Cache::config( LiteSpeed_Cache_Config::OPID_403_TTL ) ;
93
  $ttl_500 = LiteSpeed_Cache::config( LiteSpeed_Cache_Config::OPID_500_TTL ) ;
107
  elseif ( $code > 400 ) {
108
  self::$_error_status = $code ;
109
  }
110
+
111
+ // Give the default status_header back
112
+ return $status_header ;
113
  }
114
 
115
  /**
includes/litespeed-cache.class.php CHANGED
@@ -19,7 +19,7 @@ class LiteSpeed_Cache
19
  private static $_instance ;
20
 
21
  const PLUGIN_NAME = 'litespeed-cache' ;
22
- const PLUGIN_VERSION = '2.1.1' ;
23
 
24
  const PAGE_EDIT_HTACCESS = 'lscache-edit-htaccess' ;
25
 
19
  private static $_instance ;
20
 
21
  const PLUGIN_NAME = 'litespeed-cache' ;
22
+ const PLUGIN_VERSION = '2.1.1.1' ;
23
 
24
  const PAGE_EDIT_HTACCESS = 'lscache-edit-htaccess' ;
25
 
js/iziModal.min.js CHANGED
File without changes
languages/litespeed-cache.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the LiteSpeed Cache package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: LiteSpeed Cache 2.1.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/litespeed-cache\n"
7
- "POT-Creation-Date: 2018-03-19 20:32:22+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -393,13 +393,13 @@ msgstr ""
393
  msgid "Failed to push to LiteSpeed server: %s"
394
  msgstr ""
395
 
396
- #: admin/litespeed-cache-admin-rules.class.php:876
397
  msgid ""
398
  "<p>Please add/replace the following codes into the beginning of %1$s:</p> "
399
  "%2$s"
400
  msgstr ""
401
 
402
- #: admin/litespeed-cache-admin-rules.class.php:979
403
  msgid "File Saved."
404
  msgstr ""
405
 
@@ -415,51 +415,51 @@ msgstr ""
415
  msgid "'Use primary site settings' set by Network Administrator."
416
  msgstr ""
417
 
418
- #: admin/litespeed-cache-admin-settings.class.php:248
419
  msgid "Site options saved."
420
  msgstr ""
421
 
422
- #: admin/litespeed-cache-admin-settings.class.php:354
423
- #: admin/litespeed-cache-admin-settings.class.php:1010
424
  msgid "Default Public Cache"
425
  msgstr ""
426
 
427
- #: admin/litespeed-cache-admin-settings.class.php:355
428
  msgid "Default Private Cache"
429
  msgstr ""
430
 
431
- #: admin/litespeed-cache-admin-settings.class.php:356
432
  msgid "Default Front Page"
433
  msgstr ""
434
 
435
- #: admin/litespeed-cache-admin-settings.class.php:357
436
  msgid "Feed"
437
  msgstr ""
438
 
439
- #: admin/litespeed-cache-admin-settings.class.php:860
440
  #: admin/tpl/setting/settings_debug.php:78
441
  msgid "Log File Size Limit"
442
  msgstr ""
443
 
444
- #: admin/litespeed-cache-admin-settings.class.php:933
445
  #: admin/tpl/setting/settings_crawler.php:13
446
  msgid "Delay"
447
  msgstr ""
448
 
449
- #: admin/litespeed-cache-admin-settings.class.php:934
450
  #: admin/tpl/setting/settings_crawler.php:37
451
  msgid "Run Duration"
452
  msgstr ""
453
 
454
- #: admin/litespeed-cache-admin-settings.class.php:935
455
  msgid "Cron Interval"
456
  msgstr ""
457
 
458
- #: admin/litespeed-cache-admin-settings.class.php:936
459
  msgid "Whole Interval"
460
  msgstr ""
461
 
462
- #: admin/litespeed-cache-admin-settings.class.php:937
463
  #: admin/tpl/setting/settings_crawler.php:73
464
  msgid "Threads"
465
  msgstr ""
@@ -1044,7 +1044,7 @@ msgstr ""
1044
  msgid "Rate %s on %s"
1045
  msgstr ""
1046
 
1047
- #. #-#-#-#-# litespeed-cache.pot (LiteSpeed Cache 2.1.1) #-#-#-#-#
1048
  #. Plugin Name of the plugin/theme
1049
  #: admin/tpl/inc/admin_footer.php:6 inc/gui.class.php:341
1050
  #: includes/litespeed-cache-gui.class.php:341
2
  # This file is distributed under the same license as the LiteSpeed Cache package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: LiteSpeed Cache 2.1.1.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/litespeed-cache\n"
7
+ "POT-Creation-Date: 2018-03-21 18:49:13+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
393
  msgid "Failed to push to LiteSpeed server: %s"
394
  msgstr ""
395
 
396
+ #: admin/litespeed-cache-admin-rules.class.php:879
397
  msgid ""
398
  "<p>Please add/replace the following codes into the beginning of %1$s:</p> "
399
  "%2$s"
400
  msgstr ""
401
 
402
+ #: admin/litespeed-cache-admin-rules.class.php:981
403
  msgid "File Saved."
404
  msgstr ""
405
 
415
  msgid "'Use primary site settings' set by Network Administrator."
416
  msgstr ""
417
 
418
+ #: admin/litespeed-cache-admin-settings.class.php:247
419
  msgid "Site options saved."
420
  msgstr ""
421
 
422
+ #: admin/litespeed-cache-admin-settings.class.php:353
423
+ #: admin/litespeed-cache-admin-settings.class.php:1009
424
  msgid "Default Public Cache"
425
  msgstr ""
426
 
427
+ #: admin/litespeed-cache-admin-settings.class.php:354
428
  msgid "Default Private Cache"
429
  msgstr ""
430
 
431
+ #: admin/litespeed-cache-admin-settings.class.php:355
432
  msgid "Default Front Page"
433
  msgstr ""
434
 
435
+ #: admin/litespeed-cache-admin-settings.class.php:356
436
  msgid "Feed"
437
  msgstr ""
438
 
439
+ #: admin/litespeed-cache-admin-settings.class.php:859
440
  #: admin/tpl/setting/settings_debug.php:78
441
  msgid "Log File Size Limit"
442
  msgstr ""
443
 
444
+ #: admin/litespeed-cache-admin-settings.class.php:932
445
  #: admin/tpl/setting/settings_crawler.php:13
446
  msgid "Delay"
447
  msgstr ""
448
 
449
+ #: admin/litespeed-cache-admin-settings.class.php:933
450
  #: admin/tpl/setting/settings_crawler.php:37
451
  msgid "Run Duration"
452
  msgstr ""
453
 
454
+ #: admin/litespeed-cache-admin-settings.class.php:934
455
  msgid "Cron Interval"
456
  msgstr ""
457
 
458
+ #: admin/litespeed-cache-admin-settings.class.php:935
459
  msgid "Whole Interval"
460
  msgstr ""
461
 
462
+ #: admin/litespeed-cache-admin-settings.class.php:936
463
  #: admin/tpl/setting/settings_crawler.php:73
464
  msgid "Threads"
465
  msgstr ""
1044
  msgid "Rate %s on %s"
1045
  msgstr ""
1046
 
1047
+ #. #-#-#-#-# litespeed-cache.pot (LiteSpeed Cache 2.1.1.1) #-#-#-#-#
1048
  #. Plugin Name of the plugin/theme
1049
  #: admin/tpl/inc/admin_footer.php:6 inc/gui.class.php:341
1050
  #: includes/litespeed-cache-gui.class.php:341
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: WordPress plugin to connect to LSCache on LiteSpeed Web Server.
18
- * Version: 2.1.1
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: WordPress plugin to connect to LSCache on LiteSpeed Web Server.
18
+ * Version: 2.1.1.1
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: cache, wp-cache, litespeed, super cache, http2, total cache, optimize, object cache, redis, memcached, lazy load, database cleaner
4
  Requires at least: 4.0
5
  Tested up to: 4.9.4
6
- Stable tag: 2.1.1
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl.html
9
 
@@ -31,13 +31,12 @@ LSCWP supports WordPress Multisite and is compatible with most popular plugins,
31
  * Database Cleaner and Optimizer
32
  * PageSpeed score optimization
33
  * OPcode Cache
34
- * HTTP/2 Push for CSS and JS
35
  * DNS Prefetch
36
  * Cloudflare API
37
  * Single Site and Multi Site (Network) support
38
  * Import/Export settings
39
  * Basic/Advanced setting view
40
- * HTTP/2 & HTTPS support right out of the box
41
  * Attractive, easy-to-understand interface
42
  * WebP image format support
43
 
@@ -53,7 +52,7 @@ LSCWP supports WordPress Multisite and is compatible with most popular plugins,
53
  * [WordPress CLI](https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:lscwp#wordpress_cli) commands
54
  * Simple API system for each cache integration
55
  * Exclude from cache by URI, Category, Tag, Cookie, User Agent
56
- * [QUIC](https://blog.litespeedtech.com/2017/07/11/litespeed-announces-quic-support/) support out of the box (Not available in OpenLiteSpeed)
57
  * ESI (Edge Side Includes) support (Not available in OpenLiteSpeed)
58
 
59
  NOTE: **LiteSpeed Exclusive Features** require the use of a LiteSpeed web server with cache module installed. **General Features** may be used by anyone with any web server.
@@ -250,6 +249,10 @@ Click on the `Advanced View` link at the top of the page, and several more tabs
250
 
251
  == Changelog ==
252
 
 
 
 
 
253
  = 2.1.1 - Mar 20 2018 =
254
  * [NEW FEATURE] <strong>Browser Cache</strong> Unlocked for non-LiteSpeed users.
255
  * [IMPROVEMENT] <strong>Image Optimization</strong> Fixed issue where images with bad postmeta value continued to show in not-yet-requested queue.
3
  Tags: cache, wp-cache, litespeed, super cache, http2, total cache, optimize, object cache, redis, memcached, lazy load, database cleaner
4
  Requires at least: 4.0
5
  Tested up to: 4.9.4
6
+ Stable tag: 2.1.1.1
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl.html
9
 
31
  * Database Cleaner and Optimizer
32
  * PageSpeed score optimization
33
  * OPcode Cache
34
+ * HTTP/2 Push for CSS and JS (on web servers that support it)
35
  * DNS Prefetch
36
  * Cloudflare API
37
  * Single Site and Multi Site (Network) support
38
  * Import/Export settings
39
  * Basic/Advanced setting view
 
40
  * Attractive, easy-to-understand interface
41
  * WebP image format support
42
 
52
  * [WordPress CLI](https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:lscwp#wordpress_cli) commands
53
  * Simple API system for each cache integration
54
  * Exclude from cache by URI, Category, Tag, Cookie, User Agent
55
+ * HTTP/2 & [QUIC](https://blog.litespeedtech.com/2017/07/11/litespeed-announces-quic-support/) support (QUIC not available in OpenLiteSpeed)
56
  * ESI (Edge Side Includes) support (Not available in OpenLiteSpeed)
57
 
58
  NOTE: **LiteSpeed Exclusive Features** require the use of a LiteSpeed web server with cache module installed. **General Features** may be used by anyone with any web server.
249
 
250
  == Changelog ==
251
 
252
+ = 2.1.1.1 - Mar 21 2018 =
253
+ * [BUGFIX] Fixed issue where activation failed to add rules to .htaccess.
254
+ * [BUGFIX] Fixed issue where 304 header was blank on feed page refresh.
255
+
256
  = 2.1.1 - Mar 20 2018 =
257
  * [NEW FEATURE] <strong>Browser Cache</strong> Unlocked for non-LiteSpeed users.
258
  * [IMPROVEMENT] <strong>Image Optimization</strong> Fixed issue where images with bad postmeta value continued to show in not-yet-requested queue.