Skip to content

Commit

Permalink
v7.0-b13: * **ESI** Fixed a log logic failure when ESI buffer is empty.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hai Zheng committed Nov 13, 2024
1 parent e2815ac commit 10fbfc3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions litespeed-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,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: 7.0-b12
* Version: 7.0-b13
* Author: LiteSpeed Technologies
* Author URI: https://www.litespeedtech.com
* License: GPLv3
Expand Down Expand Up @@ -34,7 +34,7 @@
return;
}

!defined('LSCWP_V') && define('LSCWP_V', '7.0-b12');
!defined('LSCWP_V') && define('LSCWP_V', '7.0-b13');

!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 readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ You can report security bugs through the Patchstack Vulnerability Disclosure Pro
* **CLI** QUIC.cloud CLI `wp litespeed-online ping` supports `--force` args now.
* **Image Optimization** Dropped `Auto Pull Cron` setting. Added PHP const `LITESPEED_IMG_OPTM_ORI` support.
* **Purge** Allowed `LSWCP_EMPTYCACHE` defined to false to disable Purge all sites.
* **ESI** Fixed a log logic failure when ESI buffer is empty.
* **Crawler** Enhanced hash generation function for cryptographic security.
* **Crawler** Added back `Role Simulator` w/ IP limited to `127.0.0.1` only.
* **Crawler** Defaulted and limited crawler `Run Duration` maximum to 900 seconds and dropped the setting.
Expand Down
2 changes: 1 addition & 1 deletion src/core.cls.php
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ public function send_headers_force($buffer)
$this->send_headers(true);

// Log ESI nonce buffer empty issue
if (defined('LSCACHE_IS_ESI') && strlen($buffer) != 0) {
if (defined('LSCACHE_IS_ESI') && strlen($buffer) == 0) {
// log ref for debug purpose
error_log('ESI buffer empty ' . $_SERVER['REQUEST_URI']);
}
Expand Down

0 comments on commit 10fbfc3

Please sign in to comment.