LiteSpeed Cache - Version 2.9.8.5

Version Description

  • Aug 21 2019 =
  • CCSS: Removed potential PHP notice when getting post_type. (@amcgiffert)
  • CDN: Bypassed CDN replacement on admin page when adding media to page/post. (@martin_bailey)
  • Media: Fixed inability to update or destroy postmeta data for child images. (#167713)
Download this release

Release Info

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

Code changes from version 2.9.8.4 to 2.9.8.5

inc/img_optm.class.php CHANGED
@@ -851,12 +851,12 @@ class LiteSpeed_Cache_Img_Optm
851
LEFT JOIN $wpdb->postmeta b ON b.post_id = a.post_id AND b.meta_key = %s
852
WHERE a.root_id IN ( " . implode( ',', array_fill( 0, count( $root_id_list ), '%d' ) ) . " ) GROUP BY a.post_id" ;
853
854
- $tmp = $wpdb->get_results( $wpdb->prepare( $q, array( self::DB_IMG_OPTIMIZE_SIZE, $root_id_list ) ) ) ;
855
856
$pids_to_update = array() ;
857
$pids_data_to_insert = array() ;
858
foreach ( $tmp as $v ) {
859
- $optm_info = $child_postmeta_info[ $v->root_id ] ;
860
861
if ( $v->b_meta_id ) {
862
$pids_to_update[] = $v->post_id ;
851
LEFT JOIN $wpdb->postmeta b ON b.post_id = a.post_id AND b.meta_key = %s
852
WHERE a.root_id IN ( " . implode( ',', array_fill( 0, count( $root_id_list ), '%d' ) ) . " ) GROUP BY a.post_id" ;
853
854
+ $tmp = $wpdb->get_results( $wpdb->prepare( $q, array_merge( array( self::DB_IMG_OPTIMIZE_SIZE ), $root_id_list ) ) ) ;
855
856
$pids_to_update = array() ;
857
$pids_data_to_insert = array() ;
858
foreach ( $tmp as $v ) {
859
+ $optm_info = serialize( $child_postmeta_info[ $v->root_id ] ) ;
860
861
if ( $v->b_meta_id ) {
862
$pids_to_update[] = $v->post_id ;
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.4' ;
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.5' ;
30
31
const PAGE_EDIT_HTACCESS = 'lscache-edit-htaccess' ;
32
inc/router.class.php CHANGED
@@ -125,6 +125,18 @@ class LiteSpeed_Cache_Router
125
$can = false ;
126
}
127
128
$can_final = apply_filters( 'litespeed_can_cdn', $can ) ;
129
130
if ( $can_final != $can ) {
125
$can = false ;
126
}
127
128
+ /**
129
+ * Bypass post/page link setting
130
+ * @since 2.9.8.5
131
+ */
132
+ if (
133
+ strpos( $_SERVER[ 'REQUEST_URI' ], 'wp-json/wp/v2/media' ) !== false
134
+ && strpos( $_SERVER[ 'HTTP_REFERER' ], 'wp-admin') !== false
135
+ ) {
136
+ LiteSpeed_Cache_Log::debug( '[Router] CDN bypassed: wp-json on admin page' ) ;
137
+ $can = false ;
138
+ }
139
+
140
$can_final = apply_filters( 'litespeed_can_cdn', $can ) ;
141
142
if ( $can_final != $can ) {
inc/utility.class.php CHANGED
@@ -104,7 +104,7 @@ class LiteSpeed_Cache_Utility
104
}
105
elseif ( $wp_query->is_tax ) {
106
$page_type = 'tax' ;
107
- $page_type = get_queried_object()->taxonomy ;
108
}
109
elseif ( $wp_query->is_archive ) {
110
if ( $wp_query->is_day ) {
104
}
105
elseif ( $wp_query->is_tax ) {
106
$page_type = 'tax' ;
107
+ // $page_type = get_queried_object()->taxonomy ;
108
}
109
elseif ( $wp_query->is_archive ) {
110
if ( $wp_query->is_day ) {
includes/litespeed-cache-router.class.php CHANGED
@@ -125,6 +125,18 @@ class LiteSpeed_Cache_Router
125
$can = false ;
126
}
127
128
$can_final = apply_filters( 'litespeed_can_cdn', $can ) ;
129
130
if ( $can_final != $can ) {
125
$can = false ;
126
}
127
128
+ /**
129
+ * Bypass post/page link setting
130
+ * @since 2.9.8.5
131
+ */
132
+ if (
133
+ strpos( $_SERVER[ 'REQUEST_URI' ], 'wp-json/wp/v2/media' ) !== false
134
+ && strpos( $_SERVER[ 'HTTP_REFERER' ], 'wp-admin') !== false
135
+ ) {
136
+ LiteSpeed_Cache_Log::debug( '[Router] CDN bypassed: wp-json on admin page' ) ;
137
+ $can = false ;
138
+ }
139
+
140
$can_final = apply_filters( 'litespeed_can_cdn', $can ) ;
141
142
if ( $can_final != $can ) {
includes/litespeed-cache-utility.class.php CHANGED
@@ -104,7 +104,7 @@ class LiteSpeed_Cache_Utility
104
}
105
elseif ( $wp_query->is_tax ) {
106
$page_type = 'tax' ;
107
- $page_type = get_queried_object()->taxonomy ;
108
}
109
elseif ( $wp_query->is_archive ) {
110
if ( $wp_query->is_day ) {
104
}
105
elseif ( $wp_query->is_tax ) {
106
$page_type = 'tax' ;
107
+ // $page_type = get_queried_object()->taxonomy ;
108
}
109
elseif ( $wp_query->is_archive ) {
110
if ( $wp_query->is_day ) {
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.4' ;
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.5' ;
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.8.1\n"
6
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/litespeed-cache\n"
7
- "POT-Creation-Date: 2019-06-17 19:09:50+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.8.1) #-#-#-#-#
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
@@ -3746,7 +3746,7 @@ msgid "Auto Purge Rules For Publish/Update"
3746
msgstr ""
3747
3748
#: admin/tpl/setting/settings_purge.php:53
3749
- #: thirdparty/lscwp-3rd-woocommerce.cls.php:866
3750
msgid "Note"
3751
msgstr ""
3752
@@ -4432,75 +4432,75 @@ msgstr ""
4432
msgid "Failed to write to %s."
4433
msgstr ""
4434
4435
- #: thirdparty/lscwp-3rd-woocommerce.cls.php:801
4436
msgid "WooCommerce"
4437
msgstr ""
4438
4439
- #: thirdparty/lscwp-3rd-woocommerce.cls.php:804
4440
msgid "Purge product on changes to the quantity or stock status."
4441
msgstr ""
4442
4443
- #: thirdparty/lscwp-3rd-woocommerce.cls.php:805
4444
msgid "Purge categories only when stock status changes."
4445
msgstr ""
4446
4447
- #: thirdparty/lscwp-3rd-woocommerce.cls.php:806
4448
msgid "Purge product and categories only when the stock status changes."
4449
msgstr ""
4450
4451
- #: thirdparty/lscwp-3rd-woocommerce.cls.php:807
4452
msgid "Purge product only when the stock status changes."
4453
msgstr ""
4454
4455
- #: thirdparty/lscwp-3rd-woocommerce.cls.php:808
4456
msgid "Do not purge categories on changes to the quantity or stock status."
4457
msgstr ""
4458
4459
- #: thirdparty/lscwp-3rd-woocommerce.cls.php:809
4460
msgid ""
4461
"Always purge both product and categories on changes to the quantity or stock "
4462
"status."
4463
msgstr ""
4464
4465
- #: thirdparty/lscwp-3rd-woocommerce.cls.php:812
4466
msgid ""
4467
"Determines how changes in product quantity and product stock status affect "
4468
"product pages and their associated category pages."
4469
msgstr ""
4470
4471
- #: thirdparty/lscwp-3rd-woocommerce.cls.php:813
4472
msgid ""
4473
"Checking this option will force the shop page to use the front page TTL "
4474
"setting."
4475
msgstr ""
4476
4477
- #: thirdparty/lscwp-3rd-woocommerce.cls.php:814
4478
msgid ""
4479
"For example, if the homepage for the site is located at %1$s, the shop page "
4480
"may be located at %2$s."
4481
msgstr ""
4482
4483
- #: thirdparty/lscwp-3rd-woocommerce.cls.php:842
4484
msgid "Product Update Interval"
4485
msgstr ""
4486
4487
- #: thirdparty/lscwp-3rd-woocommerce.cls.php:849
4488
msgid "Use Front Page TTL for the Shop Page"
4489
msgstr ""
4490
4491
- #: thirdparty/lscwp-3rd-woocommerce.cls.php:856
4492
msgid "Privately Cache Cart"
4493
msgstr ""
4494
4495
- #: thirdparty/lscwp-3rd-woocommerce.cls.php:860
4496
msgid "Privately cache cart when not empty."
4497
msgstr ""
4498
4499
- #: thirdparty/lscwp-3rd-woocommerce.cls.php:868
4500
msgid "After verifying that the cache works in general, please test the cart."
4501
msgstr ""
4502
4503
- #: thirdparty/lscwp-3rd-woocommerce.cls.php:869
4504
msgid "To test the cart, visit the <a %s>FAQ</a>."
4505
msgstr ""
4506
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.8.5\n"
6
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/litespeed-cache\n"
7
+ "POT-Creation-Date: 2019-08-21 17:30:00+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.8.5) #-#-#-#-#
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
3746
msgstr ""
3747
3748
#: admin/tpl/setting/settings_purge.php:53
3749
+ #: thirdparty/lscwp-3rd-woocommerce.cls.php:867
3750
msgid "Note"
3751
msgstr ""
3752
4432
msgid "Failed to write to %s."
4433
msgstr ""
4434
4435
+ #: thirdparty/lscwp-3rd-woocommerce.cls.php:802
4436
msgid "WooCommerce"
4437
msgstr ""
4438
4439
+ #: thirdparty/lscwp-3rd-woocommerce.cls.php:805
4440
msgid "Purge product on changes to the quantity or stock status."
4441
msgstr ""
4442
4443
+ #: thirdparty/lscwp-3rd-woocommerce.cls.php:806
4444
msgid "Purge categories only when stock status changes."
4445
msgstr ""
4446
4447
+ #: thirdparty/lscwp-3rd-woocommerce.cls.php:807
4448
msgid "Purge product and categories only when the stock status changes."
4449
msgstr ""
4450
4451
+ #: thirdparty/lscwp-3rd-woocommerce.cls.php:808
4452
msgid "Purge product only when the stock status changes."
4453
msgstr ""
4454
4455
+ #: thirdparty/lscwp-3rd-woocommerce.cls.php:809
4456
msgid "Do not purge categories on changes to the quantity or stock status."
4457
msgstr ""
4458
4459
+ #: thirdparty/lscwp-3rd-woocommerce.cls.php:810
4460
msgid ""
4461
"Always purge both product and categories on changes to the quantity or stock "
4462
"status."
4463
msgstr ""
4464
4465
+ #: thirdparty/lscwp-3rd-woocommerce.cls.php:813
4466
msgid ""
4467
"Determines how changes in product quantity and product stock status affect "
4468
"product pages and their associated category pages."
4469
msgstr ""
4470
4471
+ #: thirdparty/lscwp-3rd-woocommerce.cls.php:814
4472
msgid ""
4473
"Checking this option will force the shop page to use the front page TTL "
4474
"setting."
4475
msgstr ""
4476
4477
+ #: thirdparty/lscwp-3rd-woocommerce.cls.php:815
4478
msgid ""
4479
"For example, if the homepage for the site is located at %1$s, the shop page "
4480
"may be located at %2$s."
4481
msgstr ""
4482
4483
+ #: thirdparty/lscwp-3rd-woocommerce.cls.php:843
4484
msgid "Product Update Interval"
4485
msgstr ""
4486
4487
+ #: thirdparty/lscwp-3rd-woocommerce.cls.php:850
4488
msgid "Use Front Page TTL for the Shop Page"
4489
msgstr ""
4490
4491
+ #: thirdparty/lscwp-3rd-woocommerce.cls.php:857
4492
msgid "Privately Cache Cart"
4493
msgstr ""
4494
4495
+ #: thirdparty/lscwp-3rd-woocommerce.cls.php:861
4496
msgid "Privately cache cart when not empty."
4497
msgstr ""
4498
4499
+ #: thirdparty/lscwp-3rd-woocommerce.cls.php:869
4500
msgid "After verifying that the cache works in general, please test the cart."
4501
msgstr ""
4502
4503
+ #: thirdparty/lscwp-3rd-woocommerce.cls.php:870
4504
msgid "To test the cart, visit the <a %s>FAQ</a>."
4505
msgstr ""
4506
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.4
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.5
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.2
6
- Stable tag: 2.9.8.4
7
License: GPLv3
8
License URI: http://www.gnu.org/licenses/gpl.html
9
@@ -290,6 +290,11 @@ Click on the `Advanced View` link at the top of the page, and several more tabs
290
291
== Changelog ==
292
293
= 2.9.8.4 - Jul 25 2019 =
294
* <strong>Object</strong>: Increased compatibility with phpredis 5.0.
295
* <strong>Object</strong>: Appended `wc_session_id` to default Do Not Cache Groups setting to avoid issue where WooCommerce cart items were missing when Object Cache is used. NOTE: Existing users must add `wc_session_id` manually! (#895333)
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.2
6
+ Stable tag: 2.9.8.5
7
License: GPLv3
8
License URI: http://www.gnu.org/licenses/gpl.html
9
290
291
== Changelog ==
292
293
+ = 2.9.8.5 - Aug 21 2019 =
294
+ * <strong>CCSS</strong>: Removed potential PHP notice when getting post_type. (@amcgiffert)
295
+ * <strong>CDN</strong>: Bypassed CDN replacement on admin page when adding media to page/post. (@martin_bailey)
296
+ * 🐞<strong>Media</strong>: Fixed inability to update or destroy postmeta data for child images. (#167713)
297
+
298
= 2.9.8.4 - Jul 25 2019 =
299
* <strong>Object</strong>: Increased compatibility with phpredis 5.0.
300
* <strong>Object</strong>: Appended `wc_session_id` to default Do Not Cache Groups setting to avoid issue where WooCommerce cart items were missing when Object Cache is used. NOTE: Existing users must add `wc_session_id` manually! (#895333)