Skip to content

Commit

Permalink
v3.4.2-rc1: [3rd] YITH wishlist now will only send a combined single …
Browse files Browse the repository at this point in the history
…sub request no matter how many widget contained in one page. (LSWS v5.4.9 build3+ required)
  • Loading branch information
hi-hai committed Sep 4, 2020
1 parent 4c8b2d6 commit 463524f
Show file tree
Hide file tree
Showing 5 changed files with 313 additions and 217 deletions.
4 changes: 2 additions & 2 deletions litespeed-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: LiteSpeed Cache
* Plugin URI: https://www.litespeedtech.com/products/cache-plugins/wordpress-acceleration
* Description: High-performance page caching and site optimization from LiteSpeed
* Version: 3.4.1
* Version: 3.4.2-rc1
* Author: LiteSpeed Technologies
* Author URI: https://www.litespeedtech.com
* License: GPLv3
Expand Down Expand Up @@ -33,7 +33,7 @@
return;
}

! defined( 'LSCWP_V' ) && define( 'LSCWP_V', '3.4.1' );
! defined( 'LSCWP_V' ) && define( 'LSCWP_V', '3.4.2-rc1' );

! defined( 'LSCWP_CONTENT_DIR' ) && define( 'LSCWP_CONTENT_DIR', WP_CONTENT_DIR ) ;
! defined( 'LSCWP_DIR' ) && define( 'LSCWP_DIR', __DIR__ . '/' ) ;// Full absolute path '/var/www/html/***/wp-content/plugins/litespeed-cache/' or MU
Expand Down
1 change: 1 addition & 0 deletions src/api.cls.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ public function init() {
// Filter `litespeed_esi_params` // @previous API::hook_esi_param( $hook )
// Action `litespeed_tpl_normal` // @previous API::hook_tpl_not_esi($hook) && Action `litespeed_is_not_esi_template`
// Action `litespeed_esi_load-$block` // @usage add_action( 'litespeed_esi_load-' . $block, $hook ) // @previous API::hook_tpl_esi($block, $hook)
add_action( 'litespeed_esi_combine', __NAMESPACE__ . '\ESI::combine' );

/**
* Vary
Expand Down
5 changes: 3 additions & 2 deletions src/core.cls.php
Original file line number Diff line number Diff line change
Expand Up @@ -416,13 +416,14 @@ public function send_headers_force( $buffer ) {
*/
if ( defined( 'LSCACHE_IS_ESI' ) ) {
Debug2::debug( '[Core] ESI Start 👇' );
if ( strlen( $buffer ) > 100 ) {
Debug2::debug( trim( substr( $buffer, 0, 100 ) ) . '.....' );
if ( strlen( $buffer ) > 500 ) {
Debug2::debug( trim( substr( $buffer, 0, 500 ) ) . '.....' );
}
else {
Debug2::debug( $buffer );
}
Debug2::debug( '[Core] ESI End 👆' );
Debug2::debug( $buffer );
}

if ( apply_filters( 'litespeed_is_json', false ) ) {
Expand Down
Loading

0 comments on commit 463524f

Please sign in to comment.