Skip to content

Commit 21a95b9

Browse files
author
Hai Zheng
committed
v7.1-b8: No need to check cookie error for CLI or CRON.
1 parent 50330b0 commit 21a95b9

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

litespeed-cache.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Plugin Name: LiteSpeed Cache
55
* Plugin URI: https://www.litespeedtech.com/products/cache-plugins/wordpress-acceleration
66
* Description: High-performance page caching and site optimization from LiteSpeed
7-
* Version: 7.1-b7
7+
* Version: 7.1-b8
88
* Author: LiteSpeed Technologies
99
* Author URI: https://www.litespeedtech.com
1010
* License: GPLv3
@@ -34,7 +34,7 @@
3434
return;
3535
}
3636

37-
!defined('LSCWP_V') && define('LSCWP_V', '7.1-b7');
37+
!defined('LSCWP_V') && define('LSCWP_V', '7.1-b8');
3838

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

src/optimize.cls.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function init()
6969
$this->cfg_css_async = defined('LITESPEED_GUEST_OPTM') || $this->conf(self::O_OPTM_CSS_ASYNC);
7070
if ($this->cfg_css_async) {
7171
if (!$this->cls('Cloud')->activated()) {
72-
Debug2::debug('[Optm] ❌ CCSS set to OFF due to missing domain key');
72+
Debug2::debug('[Optm] ❌ CCSS set to OFF due to QC not activated');
7373
$this->cfg_css_async = false;
7474
}
7575
if ((defined('LITESPEED_GUEST_OPTM') || ($this->conf(self::O_OPTM_UCSS) && $this->conf(self::O_OPTM_CSS_COMB))) && $this->conf(self::O_OPTM_UCSS_INLINE)) {

src/vary.cls.php

+4
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ private function _update_vary_name()
5454
}
5555
}
5656

57+
if (defined('LITESPEED_CLI') || defined('DOING_CRON')) {
58+
$something_wrong = false;
59+
}
60+
5761
if ($something_wrong) {
5862
// Display cookie error msg to admin
5963
if (is_multisite() ? is_network_admin() : is_admin()) {

0 commit comments

Comments
 (0)