Skip to content

Commit d8cd04a

Browse files
author
Hai Zheng
committed
v7.9.2-a1: * **CDN** Kept the saved Cloudflare zone when the API lookup fails after a plugin update. (nathaningram)
1 parent a4bd5fa commit d8cd04a

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

litespeed-cache.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: LiteSpeed Cache
44
* Plugin URI: https://www.litespeedtech.com/products/cache-plugins/wordpress-acceleration
55
* Description: High-performance page caching and site optimization from LiteSpeed
6-
* Version: 7.9.1
6+
* Version: 7.9.2-a1
77
* Author: LiteSpeed Technologies
88
* Author URI: https://www.litespeedtech.com
99
* License: GPLv3
@@ -35,7 +35,7 @@
3535
return;
3636
}
3737

38-
! defined( 'LSCWP_V' ) && define( 'LSCWP_V', '7.9.1' );
38+
! defined( 'LSCWP_V' ) && define( 'LSCWP_V', '7.9.2-a1' );
3939

4040
! defined( 'LSCWP_CONTENT_DIR' ) && define( 'LSCWP_CONTENT_DIR', WP_CONTENT_DIR );
4141
! defined( 'LSCWP_DIR' ) && define( 'LSCWP_DIR', __DIR__ . '/' ); // Full absolute path '/var/www/html/***/wp-content/plugins/litespeed-cache/' or MU

readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ Please don't report a suspected vulnerability in this support forum. Reporting d
264264

265265
= 8.0 - Coming soon 2026 =
266266
* 🌱**OptiMax** OptiMax to maximize the page score.
267+
* **CDN** Kept the saved Cloudflare zone when the API lookup fails after a plugin update. (nathaningram)
267268

268269
= 7.9.1 - Sep 1 2026 =
269270
* **Core** Aligned the runtime PHP and WordPress guards with the published minimum requirements.

src/cdn/cloudflare.cls.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ public function try_refresh_zone() {
5151

5252
Debug2::debug("[Cloudflare] Get zone successfully \t\t[ID] " . $zone['id']);
5353
} else {
54-
$this->cls('Conf')->update(self::O_CDN_CLOUDFLARE_ZONE, '');
55-
Debug2::debug('[Cloudflare] ❌ Get zone failed, clean zone');
54+
// Keep the last known zone: a failed lookup means the API was unusable (timeout, rate limit, outage), not that the saved zone is wrong.
55+
Debug2::debug('[Cloudflare] ❌ Get zone failed, keep last known zone');
5656
}
5757
}
5858

0 commit comments

Comments
 (0)