LiteSpeed Cache - Version 2.9.7

Version Description

  • Apr 1 2019 =
  • QUIC.cloud CDN feature. Now Apache/Nginx can use LiteSpeed cache freely.
Download this release

Release Info

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

Code changes from version 2.9.6 to 2.9.7

admin/tpl/inc/check_cache_disabled.php CHANGED
@@ -4,9 +4,9 @@ if ( ! defined( 'WPINC' ) ) die ;
4
  $reasons = array() ;
5
 
6
  if ( ! defined( 'LITESPEED_ALLOWED' ) ) {
7
- if ( defined( 'LITESPEED_SERVER_TYPE' ) && 'LITESPEED_SERVER_TYPE' == 'NONE') {
8
  $reasons[] = array(
9
- 'title' => __( 'Caching with a non-LiteSpeed server (i.e. Apache or nginx) is not currently supported.', 'litespeed-cache' ),
10
  'link' => 'https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:lscwp#requirements',
11
  ) ;
12
  } else {
4
  $reasons = array() ;
5
 
6
  if ( ! defined( 'LITESPEED_ALLOWED' ) ) {
7
+ if ( defined( 'LITESPEED_SERVER_TYPE' ) && LITESPEED_SERVER_TYPE == 'NONE') {
8
  $reasons[] = array(
9
+ 'title' => __( 'To use the caching functions you must have a LiteSpeed web server or be using QUIC.cloud CDN.', 'litespeed-cache' ),
10
  'link' => 'https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:lscwp#requirements',
11
  ) ;
12
  } else {
admin/tpl/setting/settings_cdn.php CHANGED
@@ -181,14 +181,14 @@ $cdn_mapping = $this->config->get_item( LiteSpeed_Cache_Config::ITEM_CDN_MAPPING
181
  </td>
182
  </tr>
183
 
184
- <tr <?php if ( ! defined( 'LITESPEED_QUIC_CLOUD' ) ) echo 'class="litespeed-hide"' ; ?>>
185
  <th><?php echo __( 'Quic Cloud API', 'litespeed-cache' ) ; ?></th>
186
  <td>
187
  <?php $this->build_switch( LiteSpeed_Cache_Config::OPT_CDN_QUIC ) ; ?>
188
  <div class="litespeed-desc">
189
  <?php echo sprintf( __( 'Use %s API functionality.', 'litespeed-cache' ), 'Quic Cloud' ) ; ?>
190
 
191
- <a id='litespeed_modal_href' href="https://quic.cloud" target="_blank">Quic.cloud</a>
192
 
193
  <!-- <link rel="stylesheet" href="<?php echo LSWCP_PLUGIN_URL ; ?>css/iziModal.min.css"> -->
194
  <!-- <script type="text/javascript" src="<?php echo LSWCP_PLUGIN_URL ; ?>js/iziModal.min.js"></script> -->
@@ -217,7 +217,7 @@ $cdn_mapping = $this->config->get_item( LiteSpeed_Cache_Config::ITEM_CDN_MAPPING
217
  <?php $this->build_input( LiteSpeed_Cache_Config::OPT_CDN_QUIC_KEY ) ; ?>
218
  <div class="litespeed-desc">
219
  <?php echo sprintf( __( 'Your API key is used to access %s APIs.', 'litespeed-cache' ), 'Quic Cloud' ) ; ?>
220
- <?php echo sprintf( __( 'Get it from <a %1$s>%2$s</a>.', 'litespeed-cache' ), 'href="https://quic.cloud/dashboard" target="_blank"', 'Quic Cloud' ) ; ?>
221
  </div>
222
  </div>
223
 
181
  </td>
182
  </tr>
183
 
184
+ <tr>
185
  <th><?php echo __( 'Quic Cloud API', 'litespeed-cache' ) ; ?></th>
186
  <td>
187
  <?php $this->build_switch( LiteSpeed_Cache_Config::OPT_CDN_QUIC ) ; ?>
188
  <div class="litespeed-desc">
189
  <?php echo sprintf( __( 'Use %s API functionality.', 'litespeed-cache' ), 'Quic Cloud' ) ; ?>
190
 
191
+ <a id='litespeed_modal_href' href="https://quic.cloud" target="_blank">Register for free at QUIC.cloud</a>
192
 
193
  <!-- <link rel="stylesheet" href="<?php echo LSWCP_PLUGIN_URL ; ?>css/iziModal.min.css"> -->
194
  <!-- <script type="text/javascript" src="<?php echo LSWCP_PLUGIN_URL ; ?>js/iziModal.min.js"></script> -->
217
  <?php $this->build_input( LiteSpeed_Cache_Config::OPT_CDN_QUIC_KEY ) ; ?>
218
  <div class="litespeed-desc">
219
  <?php echo sprintf( __( 'Your API key is used to access %s APIs.', 'litespeed-cache' ), 'Quic Cloud' ) ; ?>
220
+ <?php echo sprintf( __( 'Get it from <a %1$s>%2$s</a>.', 'litespeed-cache' ), 'href="https://my.quic.cloud/dashboard" target="_blank"', 'Quic Cloud' ) ; ?>
221
  </div>
222
  </div>
223
 
data/.htaccess CHANGED
File without changes
inc/config.class.php CHANGED
@@ -51,6 +51,14 @@ class LiteSpeed_Cache_Config extends LiteSpeed_Cache_Const
51
  $this->options = $options ;
52
  $this->purge_options = explode('.', $options[ self::OPID_PURGE_BY_POST ] ) ;
53
 
 
 
 
 
 
 
 
 
54
  // Init global const cache on set
55
  if ( $this->options[ self::OPID_ENABLED_RADIO ] === self::VAL_ON
56
  // || ( is_multisite() && is_network_admin() && current_user_can( 'manage_network_options' ) && $this->options[ LiteSpeed_Cache_Config::NETWORK_OPID_ENABLED ] ) todo: need to check when primary is off and network is on, if can manage
51
  $this->options = $options ;
52
  $this->purge_options = explode('.', $options[ self::OPID_PURGE_BY_POST ] ) ;
53
 
54
+ /**
55
+ * Detect if has quic.cloud set
56
+ * @since 2.9.7
57
+ */
58
+ if ( $this->options[ self::OPT_CDN_QUIC ] ) {
59
+ ! defined( 'LITESPEED_ALLOWED' ) && define( 'LITESPEED_ALLOWED', true ) ;
60
+ }
61
+
62
  // Init global const cache on set
63
  if ( $this->options[ self::OPID_ENABLED_RADIO ] === self::VAL_ON
64
  // || ( is_multisite() && is_network_admin() && current_user_can( 'manage_network_options' ) && $this->options[ LiteSpeed_Cache_Config::NETWORK_OPID_ENABLED ] ) todo: need to check when primary is off and network is on, if can manage
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.6' ;
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.7' ;
30
 
31
  const PAGE_EDIT_HTACCESS = 'lscache-edit-htaccess' ;
32
 
inc/object.class.php CHANGED
@@ -344,10 +344,10 @@ class LiteSpeed_Cache_Object
344
  * @since 1.8.1
345
  * @since 2.9.6 Fixed SASL connection @see https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:lsmcd:new_sasl
346
  */
347
- if ( $this->_cfg_user && $this->_cfg_pswd && method_exists( $this->_conn, 'setSaslAuthData' ) && ini_get( 'memcached.use_sasl' ) ) {
348
- $this->_conn->setSaslAuthData( $this->_cfg_user, $this->_cfg_pswd ) ;
349
  $this->_conn->setOption( Memcached::OPT_BINARY_PROTOCOL, true ) ;
350
  $this->_conn->setOption( Memcached::OPT_COMPRESSION, false ) ;
 
351
  }
352
 
353
  // Check connection
344
  * @since 1.8.1
345
  * @since 2.9.6 Fixed SASL connection @see https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:lsmcd:new_sasl
346
  */
347
+ if ( $this->_cfg_user && $this->_cfg_pswd && method_exists( $this->_conn, 'setSaslAuthData' ) ) {
 
348
  $this->_conn->setOption( Memcached::OPT_BINARY_PROTOCOL, true ) ;
349
  $this->_conn->setOption( Memcached::OPT_COMPRESSION, false ) ;
350
+ $this->_conn->setSaslAuthData( $this->_cfg_user, $this->_cfg_pswd ) ;
351
  }
352
 
353
  // Check connection
includes/litespeed-cache-config.class.php CHANGED
@@ -51,6 +51,14 @@ class LiteSpeed_Cache_Config extends LiteSpeed_Cache_Const
51
  $this->options = $options ;
52
  $this->purge_options = explode('.', $options[ self::OPID_PURGE_BY_POST ] ) ;
53
 
 
 
 
 
 
 
 
 
54
  // Init global const cache on set
55
  if ( $this->options[ self::OPID_ENABLED_RADIO ] === self::VAL_ON
56
  // || ( is_multisite() && is_network_admin() && current_user_can( 'manage_network_options' ) && $this->options[ LiteSpeed_Cache_Config::NETWORK_OPID_ENABLED ] ) todo: need to check when primary is off and network is on, if can manage
51
  $this->options = $options ;
52
  $this->purge_options = explode('.', $options[ self::OPID_PURGE_BY_POST ] ) ;
53
 
54
+ /**
55
+ * Detect if has quic.cloud set
56
+ * @since 2.9.7
57
+ */
58
+ if ( $this->options[ self::OPT_CDN_QUIC ] ) {
59
+ ! defined( 'LITESPEED_ALLOWED' ) && define( 'LITESPEED_ALLOWED', true ) ;
60
+ }
61
+
62
  // Init global const cache on set
63
  if ( $this->options[ self::OPID_ENABLED_RADIO ] === self::VAL_ON
64
  // || ( is_multisite() && is_network_admin() && current_user_can( 'manage_network_options' ) && $this->options[ LiteSpeed_Cache_Config::NETWORK_OPID_ENABLED ] ) todo: need to check when primary is off and network is on, if can manage
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.6' ;
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.7' ;
30
 
31
  const PAGE_EDIT_HTACCESS = 'lscache-edit-htaccess' ;
32
 
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.9.6\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/litespeed-cache\n"
7
- "POT-Creation-Date: 2019-03-27 17:42:04+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -860,7 +860,7 @@ msgstr ""
860
  msgid "Rate %s on %s"
861
  msgstr ""
862
 
863
- #. #-#-#-#-# litespeed-cache.pot (LiteSpeed Cache 2.9.6) #-#-#-#-#
864
  #. Plugin Name of the plugin/theme
865
  #: admin/tpl/inc/admin_footer.php:6
866
  #: admin/tpl/inc/banner_promo.new_version.php:56 inc/gui.class.php:477
@@ -942,8 +942,8 @@ msgstr ""
942
 
943
  #: admin/tpl/inc/check_cache_disabled.php:9
944
  msgid ""
945
- "Caching with a non-LiteSpeed server (i.e. Apache or nginx) is not currently "
946
- "supported."
947
  msgstr ""
948
 
949
  #: admin/tpl/inc/check_cache_disabled.php:14
@@ -4037,7 +4037,7 @@ msgstr ""
4037
  msgid "Failed to communicate with Cloudflare"
4038
  msgstr ""
4039
 
4040
- #: inc/config.class.php:768 includes/litespeed-cache-config.class.php:768
4041
  msgid "Changed setting successfully."
4042
  msgstr ""
4043
 
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.9.7\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/litespeed-cache\n"
7
+ "POT-Creation-Date: 2019-04-01 19:42:51+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
860
  msgid "Rate %s on %s"
861
  msgstr ""
862
 
863
+ #. #-#-#-#-# litespeed-cache.pot (LiteSpeed Cache 2.9.7) #-#-#-#-#
864
  #. Plugin Name of the plugin/theme
865
  #: admin/tpl/inc/admin_footer.php:6
866
  #: admin/tpl/inc/banner_promo.new_version.php:56 inc/gui.class.php:477
942
 
943
  #: admin/tpl/inc/check_cache_disabled.php:9
944
  msgid ""
945
+ "To use the caching functions you must have a LiteSpeed web server or be "
946
+ "using QUIC.cloud CDN."
947
  msgstr ""
948
 
949
  #: admin/tpl/inc/check_cache_disabled.php:14
4037
  msgid "Failed to communicate with Cloudflare"
4038
  msgstr ""
4039
 
4040
+ #: inc/config.class.php:776 includes/litespeed-cache-config.class.php:776
4041
  msgid "Changed setting successfully."
4042
  msgstr ""
4043
 
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.6
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.7
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.1.1
6
- Stable tag: 2.9.6
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl.html
9
 
@@ -18,12 +18,13 @@ LSCWP supports WordPress Multisite and is compatible with most popular plugins,
18
  == Requirements ==
19
  **General Features** may be used by anyone with any web server (LiteSpeed, Apache, NGiNX, etc.).
20
 
21
- **LiteSpeed Exclusive Features** require OpenLiteSpeed, commercial LiteSpeed products, or LiteSpeed-powered hosting. [Why?](https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:lscwp:faq#why_do_the_cache_features_require_litespeed_server)
22
 
23
  == Plugin Features ==
24
 
25
  = General Features =
26
 
 
27
  * Object Cache (Memcached/LSMCD/Redis)
28
  * Image Optimization (Lossless/Lossy)
29
  * Minify CSS, JavaScript, and HTML
@@ -146,6 +147,8 @@ A page cache allows the server to bypass PHP and database queries altogether. LS
146
 
147
  If all of that sounds complicated, no need to worry. LSCWP works right out of the box with default settings that are appropriate for most sites. [See the Beginner's Guide](https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:lscwp:beginner).
148
 
 
 
149
  = What about the optimization features of LSCache? =
150
 
151
  LSCWP includes additional optimization features, such as Database Optimization, Minification and Combination of CSS and JS files, HTTP/2 Push, CDN Support, Browser Cache, Object Cache, Lazy Load for Images, and Image Optimization! And now, many of these features do not require the use of a LiteSpeed web server.
@@ -284,6 +287,9 @@ Click on the `Advanced View` link at the top of the page, and several more tabs
284
 
285
  == Changelog ==
286
 
 
 
 
287
  = 2.9.6 - Mar 27 2019 =
288
  * 🌱<strong>IAPI</strong>: Appended XMP to `Preserve EXIF data` setting. WebP will now honor this setting. (#902219)
289
  * <strong>Object</script> Fixed SASL connection with LSMCD.
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.1.1
6
+ Stable tag: 2.9.7
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl.html
9
 
18
  == Requirements ==
19
  **General Features** may be used by anyone with any web server (LiteSpeed, Apache, NGiNX, etc.).
20
 
21
+ **LiteSpeed Exclusive Features** require OpenLiteSpeed, commercial LiteSpeed products, LiteSpeed-powered hosting, or [the new QUIC.cloud CDN](https://quic.cloud), now in beta. [Why?](https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:lscwp:faq#why_do_the_cache_features_require_litespeed_server)
22
 
23
  == Plugin Features ==
24
 
25
  = General Features =
26
 
27
+ * Free QUIC.cloud CDN Cache
28
  * Object Cache (Memcached/LSMCD/Redis)
29
  * Image Optimization (Lossless/Lossy)
30
  * Minify CSS, JavaScript, and HTML
147
 
148
  If all of that sounds complicated, no need to worry. LSCWP works right out of the box with default settings that are appropriate for most sites. [See the Beginner's Guide](https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:lscwp:beginner).
149
 
150
+ **Don't have a LiteSpeed server?** We're beta testing our new QUIC.cloud CDN service, and it allows those on *any server* (nginx and Apache included) to experience the power of LiteSpeed caching! [Click here](https://quic.cloud) to learn more or to give QUIC.cloud a try!
151
+
152
  = What about the optimization features of LSCache? =
153
 
154
  LSCWP includes additional optimization features, such as Database Optimization, Minification and Combination of CSS and JS files, HTTP/2 Push, CDN Support, Browser Cache, Object Cache, Lazy Load for Images, and Image Optimization! And now, many of these features do not require the use of a LiteSpeed web server.
287
 
288
  == Changelog ==
289
 
290
+ = 2.9.7 - Apr 1 2019 =
291
+ * 🌱🌱🌱 QUIC.cloud CDN feature. Now Apache/Nginx can use LiteSpeed cache freely.
292
+
293
  = 2.9.6 - Mar 27 2019 =
294
  * 🌱<strong>IAPI</strong>: Appended XMP to `Preserve EXIF data` setting. WebP will now honor this setting. (#902219)
295
  * <strong>Object</script> Fixed SASL connection with LSMCD.