Version Description
- Jun 17 2019 =
- 3rd: Set ESI template hook priority to highest number to prevent ESI conflict with Enfold theme. (#289354)
- 3rd: Improved Facetwp reset button compatibility with ESI. (@emilyel)
- 3rd: Enabled user role change to fix duplicate login issue for plugins that use alternative login processes. (#114165 #717223 @sergiom87)
- GUI: Wrapped static text with translate function. (@halilemreozen)
Download this release
Release Info
Developer | hailite |
Plugin | LiteSpeed Cache |
Version | 2.9.8.1 |
Comparing to | |
See all releases |
Code changes from version 2.9.8 to 2.9.8.1
- admin/tpl/inc/banner_promo.php +8 -8
- inc/api.class.php +3 -2
- inc/esi.class.php +3 -3
- inc/litespeed-cache.class.php +1 -1
- inc/router.class.php +1 -0
- includes/litespeed-cache-api.class.php +3 -2
- includes/litespeed-cache-esi.class.php +3 -3
- includes/litespeed-cache-router.class.php +1 -0
- includes/litespeed-cache.class.php +1 -1
- languages/litespeed-cache.pot +40 -20
- litespeed-cache.php +1 -1
- readme.txt +7 -1
- thirdparty/lscwp-3rd-divi-theme-builder.cls.php +1 -1
- thirdparty/lscwp-3rd-facetwp.cls.php +39 -0
- thirdparty/lscwp-3rd-woocommerce.cls.php +7 -5
- thirdparty/lscwp-registry-3rd.php +1 -0
admin/tpl/inc/banner_promo.php
CHANGED
@@ -73,13 +73,13 @@ else {
|
|
73 |
|
74 |
<div class="litespeed-row-flex litespeed-banner-promo-content litespeed-margin-left-remove litespeed-flex-wrap">
|
75 |
<div class="litespeed-right50 litespeed-margin-bottom20">
|
76 |
-
<h2 class="litespeed-text-grey litespeed-margin-bottom-remove litespeed-top10"
|
77 |
<hr class="litespeed-margin-bottom-remove" />
|
78 |
<div class="litespeed-row-flex" style="margin-left: -10px;">
|
79 |
<div class="litespeed-width-1-3 litespeed-padding-space litespeed-margin-x5">
|
80 |
<div>
|
81 |
<p class="litespeed-text-grey litespeed-margin-y-remove">
|
82 |
-
|
83 |
</p>
|
84 |
</div>
|
85 |
<div class="litespeed-top10 litespeed-text-jumbo litespeed-text-grey">
|
@@ -90,7 +90,7 @@ else {
|
|
90 |
<div class="litespeed-width-1-3 litespeed-padding-space litespeed-margin-x5">
|
91 |
<div>
|
92 |
<p class="litespeed-text-grey litespeed-margin-y-remove">
|
93 |
-
|
94 |
</p>
|
95 |
</div>
|
96 |
<div class="litespeed-top10 litespeed-text-jumbo litespeed-success">
|
@@ -100,7 +100,7 @@ else {
|
|
100 |
<div class="litespeed-width-1-3 litespeed-padding-space litespeed-margin-x5">
|
101 |
<div>
|
102 |
<p class="litespeed-text-grey litespeed-margin-y-remove" style="white-space: nowrap;">
|
103 |
-
|
104 |
</p>
|
105 |
</div>
|
106 |
<div class="litespeed-top10 litespeed-text-jumbo litespeed-text-fern">
|
@@ -113,13 +113,13 @@ else {
|
|
113 |
|
114 |
<?php if ( $_score[ 'score_before_optm' ] < $_score[ 'score_after_optm' ] ) : ?>
|
115 |
<div class="litespeed-margin-bottom20">
|
116 |
-
<h2 class="litespeed-text-grey litespeed-margin-bottom-remove litespeed-top10"
|
117 |
<hr class="litespeed-margin-bottom-remove" />
|
118 |
<div class="litespeed-row-flex" style="margin-left: -10px;">
|
119 |
<div class="litespeed-width-1-3 litespeed-padding-space litespeed-margin-x5">
|
120 |
<div>
|
121 |
<p class="litespeed-text-grey litespeed-text-center litespeed-margin-y-remove">
|
122 |
-
|
123 |
</p>
|
124 |
</div>
|
125 |
<div class="litespeed-promo-score" style="margin-top:-5px;">
|
@@ -129,7 +129,7 @@ else {
|
|
129 |
<div class="litespeed-width-1-3 litespeed-padding-space litespeed-margin-x5">
|
130 |
<div>
|
131 |
<p class="litespeed-text-grey litespeed-text-center litespeed-margin-y-remove">
|
132 |
-
|
133 |
</p>
|
134 |
</div>
|
135 |
<div class="litespeed-promo-score" style="margin-top:-5px;">
|
@@ -139,7 +139,7 @@ else {
|
|
139 |
<div class="litespeed-width-1-3 litespeed-padding-space litespeed-margin-x5">
|
140 |
<div>
|
141 |
<p class="litespeed-text-grey litespeed-margin-y-remove" style="white-space: nowrap;">
|
142 |
-
|
143 |
</p>
|
144 |
</div>
|
145 |
<div class="litespeed-top10 litespeed-text-jumbo litespeed-text-fern">
|
73 |
|
74 |
<div class="litespeed-row-flex litespeed-banner-promo-content litespeed-margin-left-remove litespeed-flex-wrap">
|
75 |
<div class="litespeed-right50 litespeed-margin-bottom20">
|
76 |
+
<h2 class="litespeed-text-grey litespeed-margin-bottom-remove litespeed-top10"><?php echo __( 'Page Load Time', 'litespeed-cache' ) ; ?></h2>
|
77 |
<hr class="litespeed-margin-bottom-remove" />
|
78 |
<div class="litespeed-row-flex" style="margin-left: -10px;">
|
79 |
<div class="litespeed-width-1-3 litespeed-padding-space litespeed-margin-x5">
|
80 |
<div>
|
81 |
<p class="litespeed-text-grey litespeed-margin-y-remove">
|
82 |
+
<?php echo __( 'Before', 'litespeed-cache' ) ; ?>
|
83 |
</p>
|
84 |
</div>
|
85 |
<div class="litespeed-top10 litespeed-text-jumbo litespeed-text-grey">
|
90 |
<div class="litespeed-width-1-3 litespeed-padding-space litespeed-margin-x5">
|
91 |
<div>
|
92 |
<p class="litespeed-text-grey litespeed-margin-y-remove">
|
93 |
+
<?php echo __( 'After', 'litespeed-cache' ) ; ?>
|
94 |
</p>
|
95 |
</div>
|
96 |
<div class="litespeed-top10 litespeed-text-jumbo litespeed-success">
|
100 |
<div class="litespeed-width-1-3 litespeed-padding-space litespeed-margin-x5">
|
101 |
<div>
|
102 |
<p class="litespeed-text-grey litespeed-margin-y-remove" style="white-space: nowrap;">
|
103 |
+
<?php echo __( 'Improved by', 'litespeed-cache' ) ; ?>
|
104 |
</p>
|
105 |
</div>
|
106 |
<div class="litespeed-top10 litespeed-text-jumbo litespeed-text-fern">
|
113 |
|
114 |
<?php if ( $_score[ 'score_before_optm' ] < $_score[ 'score_after_optm' ] ) : ?>
|
115 |
<div class="litespeed-margin-bottom20">
|
116 |
+
<h2 class="litespeed-text-grey litespeed-margin-bottom-remove litespeed-top10"><?php echo __( 'PageSpeed Score', 'litespeed-cache' ) ; ?></h2>
|
117 |
<hr class="litespeed-margin-bottom-remove" />
|
118 |
<div class="litespeed-row-flex" style="margin-left: -10px;">
|
119 |
<div class="litespeed-width-1-3 litespeed-padding-space litespeed-margin-x5">
|
120 |
<div>
|
121 |
<p class="litespeed-text-grey litespeed-text-center litespeed-margin-y-remove">
|
122 |
+
<?php echo __( 'Before', 'litespeed-cache' ) ; ?>
|
123 |
</p>
|
124 |
</div>
|
125 |
<div class="litespeed-promo-score" style="margin-top:-5px;">
|
129 |
<div class="litespeed-width-1-3 litespeed-padding-space litespeed-margin-x5">
|
130 |
<div>
|
131 |
<p class="litespeed-text-grey litespeed-text-center litespeed-margin-y-remove">
|
132 |
+
<?php echo __( 'After', 'litespeed-cache' ) ; ?>
|
133 |
</p>
|
134 |
</div>
|
135 |
<div class="litespeed-promo-score" style="margin-top:-5px;">
|
139 |
<div class="litespeed-width-1-3 litespeed-padding-space litespeed-margin-x5">
|
140 |
<div>
|
141 |
<p class="litespeed-text-grey litespeed-margin-y-remove" style="white-space: nowrap;">
|
142 |
+
<?php echo __( 'Improved by', 'litespeed-cache' ) ; ?>
|
143 |
</p>
|
144 |
</div>
|
145 |
<div class="litespeed-top10 litespeed-text-jumbo litespeed-text-fern">
|
inc/api.class.php
CHANGED
@@ -484,11 +484,12 @@ class LiteSpeed_Cache_API extends LiteSpeed_Cache_Const
|
|
484 |
* Hook ESI params
|
485 |
*
|
486 |
* @since 1.1.3
|
|
|
487 |
* @access public
|
488 |
*/
|
489 |
-
public static function hook_esi_param($
|
490 |
{
|
491 |
-
add_filter('
|
492 |
}
|
493 |
|
494 |
/**
|
484 |
* Hook ESI params
|
485 |
*
|
486 |
* @since 1.1.3
|
487 |
+
* @since 2.9.8.1 Changed hook name and params
|
488 |
* @access public
|
489 |
*/
|
490 |
+
public static function hook_esi_param( $hook, $priority = 10, $args = 2 )
|
491 |
{
|
492 |
+
add_filter( 'litespeed_esi_params', $hook, $priority, $args ) ;
|
493 |
}
|
494 |
|
495 |
/**
|
inc/esi.class.php
CHANGED
@@ -73,7 +73,7 @@ class LiteSpeed_Cache_ESI
|
|
73 |
*/
|
74 |
public function esi_init()
|
75 |
{
|
76 |
-
|
77 |
|
78 |
add_action( 'load-widgets.php', 'LiteSpeed_Cache_Purge::purge_widget' ) ;
|
79 |
add_action( 'wp_update_comment_count', 'LiteSpeed_Cache_Purge::purge_comment_widget' ) ;
|
@@ -352,8 +352,8 @@ class LiteSpeed_Cache_ESI
|
|
352 |
$params[ 'is_json' ] = 1 ;
|
353 |
}
|
354 |
|
355 |
-
$params = apply_filters('
|
356 |
-
$control = apply_filters('
|
357 |
if ( !is_array($params) || !is_string($control) ) {
|
358 |
defined( 'LSCWP_LOG' ) && LiteSpeed_Cache_Log::debug( "[ESI] 🛑 Sub hooks returned Params: \n" . var_export($params, true) . "\ncache control: \n" . var_export($control, true) ) ;
|
359 |
|
73 |
*/
|
74 |
public function esi_init()
|
75 |
{
|
76 |
+
add_filter( 'template_include', 'LiteSpeed_Cache_ESI::esi_template', 99999 ) ;
|
77 |
|
78 |
add_action( 'load-widgets.php', 'LiteSpeed_Cache_Purge::purge_widget' ) ;
|
79 |
add_action( 'wp_update_comment_count', 'LiteSpeed_Cache_Purge::purge_comment_widget' ) ;
|
352 |
$params[ 'is_json' ] = 1 ;
|
353 |
}
|
354 |
|
355 |
+
$params = apply_filters( 'litespeed_esi_params', $params, $block_id ) ;
|
356 |
+
$control = apply_filters('litespeed_esi_control', $control, $block_id ) ;
|
357 |
if ( !is_array($params) || !is_string($control) ) {
|
358 |
defined( 'LSCWP_LOG' ) && LiteSpeed_Cache_Log::debug( "[ESI] 🛑 Sub hooks returned Params: \n" . var_export($params, true) . "\ncache control: \n" . var_export($control, true) ) ;
|
359 |
|
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' ;
|
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.1' ;
|
30 |
|
31 |
const PAGE_EDIT_HTACCESS = 'lscache-edit-htaccess' ;
|
32 |
|
inc/router.class.php
CHANGED
@@ -233,6 +233,7 @@ class LiteSpeed_Cache_Router
|
|
233 |
LiteSpeed_Cache_Log::debug( '[Router] get_role: ' . $role ) ;
|
234 |
|
235 |
if ( ! $role ) {
|
|
|
236 |
// Guest user
|
237 |
LiteSpeed_Cache_Log::debug( '[Router] role: guest' ) ;
|
238 |
|
233 |
LiteSpeed_Cache_Log::debug( '[Router] get_role: ' . $role ) ;
|
234 |
|
235 |
if ( ! $role ) {
|
236 |
+
return $role ;
|
237 |
// Guest user
|
238 |
LiteSpeed_Cache_Log::debug( '[Router] role: guest' ) ;
|
239 |
|
includes/litespeed-cache-api.class.php
CHANGED
@@ -484,11 +484,12 @@ class LiteSpeed_Cache_API extends LiteSpeed_Cache_Const
|
|
484 |
* Hook ESI params
|
485 |
*
|
486 |
* @since 1.1.3
|
|
|
487 |
* @access public
|
488 |
*/
|
489 |
-
public static function hook_esi_param($
|
490 |
{
|
491 |
-
add_filter('
|
492 |
}
|
493 |
|
494 |
/**
|
484 |
* Hook ESI params
|
485 |
*
|
486 |
* @since 1.1.3
|
487 |
+
* @since 2.9.8.1 Changed hook name and params
|
488 |
* @access public
|
489 |
*/
|
490 |
+
public static function hook_esi_param( $hook, $priority = 10, $args = 2 )
|
491 |
{
|
492 |
+
add_filter( 'litespeed_esi_params', $hook, $priority, $args ) ;
|
493 |
}
|
494 |
|
495 |
/**
|
includes/litespeed-cache-esi.class.php
CHANGED
@@ -73,7 +73,7 @@ class LiteSpeed_Cache_ESI
|
|
73 |
*/
|
74 |
public function esi_init()
|
75 |
{
|
76 |
-
|
77 |
|
78 |
add_action( 'load-widgets.php', 'LiteSpeed_Cache_Purge::purge_widget' ) ;
|
79 |
add_action( 'wp_update_comment_count', 'LiteSpeed_Cache_Purge::purge_comment_widget' ) ;
|
@@ -352,8 +352,8 @@ class LiteSpeed_Cache_ESI
|
|
352 |
$params[ 'is_json' ] = 1 ;
|
353 |
}
|
354 |
|
355 |
-
$params = apply_filters('
|
356 |
-
$control = apply_filters('
|
357 |
if ( !is_array($params) || !is_string($control) ) {
|
358 |
defined( 'LSCWP_LOG' ) && LiteSpeed_Cache_Log::debug( "[ESI] 🛑 Sub hooks returned Params: \n" . var_export($params, true) . "\ncache control: \n" . var_export($control, true) ) ;
|
359 |
|
73 |
*/
|
74 |
public function esi_init()
|
75 |
{
|
76 |
+
add_filter( 'template_include', 'LiteSpeed_Cache_ESI::esi_template', 99999 ) ;
|
77 |
|
78 |
add_action( 'load-widgets.php', 'LiteSpeed_Cache_Purge::purge_widget' ) ;
|
79 |
add_action( 'wp_update_comment_count', 'LiteSpeed_Cache_Purge::purge_comment_widget' ) ;
|
352 |
$params[ 'is_json' ] = 1 ;
|
353 |
}
|
354 |
|
355 |
+
$params = apply_filters( 'litespeed_esi_params', $params, $block_id ) ;
|
356 |
+
$control = apply_filters('litespeed_esi_control', $control, $block_id ) ;
|
357 |
if ( !is_array($params) || !is_string($control) ) {
|
358 |
defined( 'LSCWP_LOG' ) && LiteSpeed_Cache_Log::debug( "[ESI] 🛑 Sub hooks returned Params: \n" . var_export($params, true) . "\ncache control: \n" . var_export($control, true) ) ;
|
359 |
|
includes/litespeed-cache-router.class.php
CHANGED
@@ -233,6 +233,7 @@ class LiteSpeed_Cache_Router
|
|
233 |
LiteSpeed_Cache_Log::debug( '[Router] get_role: ' . $role ) ;
|
234 |
|
235 |
if ( ! $role ) {
|
|
|
236 |
// Guest user
|
237 |
LiteSpeed_Cache_Log::debug( '[Router] role: guest' ) ;
|
238 |
|
233 |
LiteSpeed_Cache_Log::debug( '[Router] get_role: ' . $role ) ;
|
234 |
|
235 |
if ( ! $role ) {
|
236 |
+
return $role ;
|
237 |
// Guest user
|
238 |
LiteSpeed_Cache_Log::debug( '[Router] role: guest' ) ;
|
239 |
|
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' ;
|
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.1' ;
|
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\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/litespeed-cache\n"
|
7 |
-
"POT-Creation-Date: 2019-
|
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) #-#-#-#-#
|
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
|
@@ -904,6 +904,26 @@ msgstr ""
|
|
904 |
msgid "Thank You for Using the LiteSpeed Cache Plugin!"
|
905 |
msgstr ""
|
906 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
907 |
#: admin/tpl/inc/banner_promo.php:161
|
908 |
msgid "Sure I'd love to review!"
|
909 |
msgstr ""
|
@@ -3726,7 +3746,7 @@ msgid "Auto Purge Rules For Publish/Update"
|
|
3726 |
msgstr ""
|
3727 |
|
3728 |
#: admin/tpl/setting/settings_purge.php:53
|
3729 |
-
#: thirdparty/lscwp-3rd-woocommerce.cls.php:
|
3730 |
msgid "Note"
|
3731 |
msgstr ""
|
3732 |
|
@@ -4412,75 +4432,75 @@ msgstr ""
|
|
4412 |
msgid "Failed to write to %s."
|
4413 |
msgstr ""
|
4414 |
|
4415 |
-
#: thirdparty/lscwp-3rd-woocommerce.cls.php:
|
4416 |
msgid "WooCommerce"
|
4417 |
msgstr ""
|
4418 |
|
4419 |
-
#: thirdparty/lscwp-3rd-woocommerce.cls.php:
|
4420 |
msgid "Purge product on changes to the quantity or stock status."
|
4421 |
msgstr ""
|
4422 |
|
4423 |
-
#: thirdparty/lscwp-3rd-woocommerce.cls.php:
|
4424 |
msgid "Purge categories only when stock status changes."
|
4425 |
msgstr ""
|
4426 |
|
4427 |
-
#: thirdparty/lscwp-3rd-woocommerce.cls.php:
|
4428 |
msgid "Purge product and categories only when the stock status changes."
|
4429 |
msgstr ""
|
4430 |
|
4431 |
-
#: thirdparty/lscwp-3rd-woocommerce.cls.php:
|
4432 |
msgid "Purge product only when the stock status changes."
|
4433 |
msgstr ""
|
4434 |
|
4435 |
-
#: thirdparty/lscwp-3rd-woocommerce.cls.php:
|
4436 |
msgid "Do not purge categories on changes to the quantity or stock status."
|
4437 |
msgstr ""
|
4438 |
|
4439 |
-
#: thirdparty/lscwp-3rd-woocommerce.cls.php:
|
4440 |
msgid ""
|
4441 |
"Always purge both product and categories on changes to the quantity or stock "
|
4442 |
"status."
|
4443 |
msgstr ""
|
4444 |
|
4445 |
-
#: thirdparty/lscwp-3rd-woocommerce.cls.php:
|
4446 |
msgid ""
|
4447 |
"Determines how changes in product quantity and product stock status affect "
|
4448 |
"product pages and their associated category pages."
|
4449 |
msgstr ""
|
4450 |
|
4451 |
-
#: thirdparty/lscwp-3rd-woocommerce.cls.php:
|
4452 |
msgid ""
|
4453 |
"Checking this option will force the shop page to use the front page TTL "
|
4454 |
"setting."
|
4455 |
msgstr ""
|
4456 |
|
4457 |
-
#: thirdparty/lscwp-3rd-woocommerce.cls.php:
|
4458 |
msgid ""
|
4459 |
"For example, if the homepage for the site is located at %1$s, the shop page "
|
4460 |
"may be located at %2$s."
|
4461 |
msgstr ""
|
4462 |
|
4463 |
-
#: thirdparty/lscwp-3rd-woocommerce.cls.php:
|
4464 |
msgid "Product Update Interval"
|
4465 |
msgstr ""
|
4466 |
|
4467 |
-
#: thirdparty/lscwp-3rd-woocommerce.cls.php:
|
4468 |
msgid "Use Front Page TTL for the Shop Page"
|
4469 |
msgstr ""
|
4470 |
|
4471 |
-
#: thirdparty/lscwp-3rd-woocommerce.cls.php:
|
4472 |
msgid "Privately Cache Cart"
|
4473 |
msgstr ""
|
4474 |
|
4475 |
-
#: thirdparty/lscwp-3rd-woocommerce.cls.php:
|
4476 |
msgid "Privately cache cart when not empty."
|
4477 |
msgstr ""
|
4478 |
|
4479 |
-
#: thirdparty/lscwp-3rd-woocommerce.cls.php:
|
4480 |
msgid "After verifying that the cache works in general, please test the cart."
|
4481 |
msgstr ""
|
4482 |
|
4483 |
-
#: thirdparty/lscwp-3rd-woocommerce.cls.php:
|
4484 |
msgid "To test the cart, visit the <a %s>FAQ</a>."
|
4485 |
msgstr ""
|
4486 |
|
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 |
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
|
904 |
msgid "Thank You for Using the LiteSpeed Cache Plugin!"
|
905 |
msgstr ""
|
906 |
|
907 |
+
#: admin/tpl/inc/banner_promo.php:76
|
908 |
+
msgid "Page Load Time"
|
909 |
+
msgstr ""
|
910 |
+
|
911 |
+
#: admin/tpl/inc/banner_promo.php:82 admin/tpl/inc/banner_promo.php:122
|
912 |
+
msgid "Before"
|
913 |
+
msgstr ""
|
914 |
+
|
915 |
+
#: admin/tpl/inc/banner_promo.php:93 admin/tpl/inc/banner_promo.php:132
|
916 |
+
msgid "After"
|
917 |
+
msgstr ""
|
918 |
+
|
919 |
+
#: admin/tpl/inc/banner_promo.php:103 admin/tpl/inc/banner_promo.php:142
|
920 |
+
msgid "Improved by"
|
921 |
+
msgstr ""
|
922 |
+
|
923 |
+
#: admin/tpl/inc/banner_promo.php:116
|
924 |
+
msgid "PageSpeed Score"
|
925 |
+
msgstr ""
|
926 |
+
|
927 |
#: admin/tpl/inc/banner_promo.php:161
|
928 |
msgid "Sure I'd love to review!"
|
929 |
msgstr ""
|
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 |
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 |
|
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
|
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.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: 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
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl.html
|
9 |
|
@@ -289,6 +289,12 @@ Click on the `Advanced View` link at the top of the page, and several more tabs
|
|
289 |
|
290 |
== Changelog ==
|
291 |
|
|
|
|
|
|
|
|
|
|
|
|
|
292 |
= 2.9.8 - May 22 2019 =
|
293 |
* <strong>Core</strong>: Refactored loading priority so user related functions & optimization features are set after user initialization. (#717223 #114165 #413338)
|
294 |
* <strong>Media</strong>: Improved backup file calculation query to prevent out-of-memory issue.
|
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.1
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl.html
|
9 |
|
289 |
|
290 |
== Changelog ==
|
291 |
|
292 |
+
= 2.9.8.1 - Jun 17 2019 =
|
293 |
+
* <strong>3rd</strong>: Set ESI template hook priority to highest number to prevent ESI conflict with Enfold theme. (#289354)
|
294 |
+
* <strong>3rd</strong>: Improved Facetwp reset button compatibility with ESI. (@emilyel)
|
295 |
+
* <strong>3rd</strong>: Enabled user role change to fix duplicate login issue for plugins that use alternative login processes. (#114165 #717223 @sergiom87)
|
296 |
+
* <strong>GUI</strong>: Wrapped static text with translate function. (@halilemreozen)
|
297 |
+
|
298 |
= 2.9.8 - May 22 2019 =
|
299 |
* <strong>Core</strong>: Refactored loading priority so user related functions & optimization features are set after user initialization. (#717223 #114165 #413338)
|
300 |
* <strong>Media</strong>: Improved backup file calculation query to prevent out-of-memory issue.
|
thirdparty/lscwp-3rd-divi-theme-builder.cls.php
CHANGED
@@ -45,7 +45,7 @@ class LiteSpeed_Cache_ThirdParty_Divi_Theme_Builder
|
|
45 |
// As we disabled all for edit mode, this is no more needed
|
46 |
add_action( 'et_fb_before_comments_template', 'LiteSpeed_Cache_ThirdParty_Divi_Theme_Builder::js_comment_box_on' ) ;
|
47 |
add_action( 'et_fb_after_comments_template', 'LiteSpeed_Cache_ThirdParty_Divi_Theme_Builder::js_comment_box_off' ) ;
|
48 |
-
add_filter( 'litespeed_cache_sub_esi_params-comment-form', 'LiteSpeed_Cache_ThirdParty_Divi_Theme_Builder::esi_comment_add_slash' )
|
49 |
*/
|
50 |
}
|
51 |
|
45 |
// As we disabled all for edit mode, this is no more needed
|
46 |
add_action( 'et_fb_before_comments_template', 'LiteSpeed_Cache_ThirdParty_Divi_Theme_Builder::js_comment_box_on' ) ;
|
47 |
add_action( 'et_fb_after_comments_template', 'LiteSpeed_Cache_ThirdParty_Divi_Theme_Builder::js_comment_box_off' ) ;
|
48 |
+
add_filter( 'litespeed_cache_sub_esi_params-comment-form', 'LiteSpeed_Cache_ThirdParty_Divi_Theme_Builder::esi_comment_add_slash' ) ;// Note: this is changed in v2.9.8.1
|
49 |
*/
|
50 |
}
|
51 |
|
thirdparty/lscwp-3rd-facetwp.cls.php
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* The Third Party integration with FacetWP.
|
4 |
+
*
|
5 |
+
* @since 2.9.9
|
6 |
+
* @package LiteSpeed_Cache
|
7 |
+
* @subpackage LiteSpeed_Cache/thirdparty
|
8 |
+
* @author LiteSpeed Technologies <info@litespeedtech.com>
|
9 |
+
*/
|
10 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
11 |
+
die() ;
|
12 |
+
}
|
13 |
+
LiteSpeed_Cache_API::register( 'LiteSpeed_Cache_ThirdParty_Facetwp' ) ;
|
14 |
+
|
15 |
+
class LiteSpeed_Cache_ThirdParty_Facetwp
|
16 |
+
{
|
17 |
+
public static function detect()
|
18 |
+
{
|
19 |
+
if ( ! defined( 'FACETWP_VERSION' ) ) return ;
|
20 |
+
/**
|
21 |
+
* For Facetwp, if the template is "wp", return the buffered HTML
|
22 |
+
* So marked as rest call to put is_json to ESI
|
23 |
+
*/
|
24 |
+
if (
|
25 |
+
! empty( $_POST['action'] )
|
26 |
+
&& ! empty( $_POST['data'] )
|
27 |
+
&& ! empty( $_POST['data']['template'] === 'wp' )
|
28 |
+
&& $_POST['data']['template'] === 'wp'
|
29 |
+
) {
|
30 |
+
LiteSpeed_Cache_API::hook_esi_param( 'LiteSpeed_Cache_ThirdParty_Facetwp::set_is_json' ) ;
|
31 |
+
}
|
32 |
+
}
|
33 |
+
|
34 |
+
public static function set_is_json( $params )
|
35 |
+
{
|
36 |
+
$params[ 'is_json' ] = 1 ;
|
37 |
+
return $params ;
|
38 |
+
}
|
39 |
+
}
|
thirdparty/lscwp-3rd-woocommerce.cls.php
CHANGED
@@ -84,7 +84,7 @@ class LiteSpeed_Cache_ThirdParty_WooCommerce
|
|
84 |
}
|
85 |
|
86 |
if ( function_exists( 'is_product' ) && is_product() ) {
|
87 |
-
LiteSpeed_Cache_API::hook_esi_param(
|
88 |
}
|
89 |
|
90 |
/**
|
@@ -418,12 +418,14 @@ class LiteSpeed_Cache_ThirdParty_WooCommerce
|
|
418 |
* @param array $params The current ESI parameters.
|
419 |
* @return array The updated esi parameters.
|
420 |
*/
|
421 |
-
public function add_post_id($params)
|
422 |
{
|
423 |
-
if (
|
424 |
-
|
|
|
|
|
425 |
}
|
426 |
-
|
427 |
return $params ;
|
428 |
}
|
429 |
|
84 |
}
|
85 |
|
86 |
if ( function_exists( 'is_product' ) && is_product() ) {
|
87 |
+
LiteSpeed_Cache_API::hook_esi_param( array( $this, 'add_post_id' ) ) ;
|
88 |
}
|
89 |
|
90 |
/**
|
418 |
* @param array $params The current ESI parameters.
|
419 |
* @return array The updated esi parameters.
|
420 |
*/
|
421 |
+
public function add_post_id( $params, $block_id )
|
422 |
{
|
423 |
+
if ( $block_id == 'widget' ) {
|
424 |
+
if ( $params[ LiteSpeed_Cache_API::PARAM_NAME ] == 'WC_Widget_Recently_Viewed' ) {
|
425 |
+
$params[ self::ESI_PARAM_POSTID ] = get_the_ID() ;
|
426 |
+
}
|
427 |
}
|
428 |
+
|
429 |
return $params ;
|
430 |
}
|
431 |
|
thirdparty/lscwp-registry-3rd.php
CHANGED
@@ -33,6 +33,7 @@ $thirdparty_list = array(
|
|
33 |
'divi-theme-builder',
|
34 |
'wpml',
|
35 |
'wpdiscuz',
|
|
|
36 |
) ;
|
37 |
|
38 |
foreach ($thirdparty_list as $val) {
|
33 |
'divi-theme-builder',
|
34 |
'wpml',
|
35 |
'wpdiscuz',
|
36 |
+
'facetwp',
|
37 |
) ;
|
38 |
|
39 |
foreach ($thirdparty_list as $val) {
|