Skip to content

Commit

Permalink
v6.0-rc3: * 🐞**Page Optimize** Fixed a fatal PHP error caused by the …
Browse files Browse the repository at this point in the history
…WHM plugin's Mass Enable for services not in use. (Michael)
  • Loading branch information
Hai Zheng committed Nov 27, 2023
1 parent 41e7b29 commit e3c18fd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 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: 6.0-rc2
* Version: 6.0-rc3
* 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', '6.0-rc2');
!defined('LSCWP_V') && define('LSCWP_V', '6.0-rc3');

!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 @@ -265,6 +265,7 @@ The vast majority of plugins and themes are compatible with LiteSpeed Cache. The
* **VPI** VPI can now support non-alphabet filenames.
* **VPI** Fixed PHP8.2 deprecated warning. (Ryan D)
* **ESI** Fixed ESI nonce showing only HTML comment issue. (Giorgos K.)
* 🐞**Page Optimize** Fixed a fatal PHP error caused by the WHM plugin's Mass Enable for services not in use. (Michael)
* 🐞**Network** Fix in-memory options for multisites. (Tynan #588)
* **Network** Correct `Disable All Features` link for Multisite.
* 🐞**Image Optimize** Removing original image will also remove optimized images.
Expand Down
8 changes: 8 additions & 0 deletions src/data.cls.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* The class to store and manage litespeed db data.
*
Expand All @@ -7,7 +8,9 @@
* @subpackage LiteSpeed/src
* @author LiteSpeed Technologies <info@litespeedtech.com>
*/

namespace LiteSpeed;

defined('WPINC') || exit();

class Data extends Root
Expand Down Expand Up @@ -454,6 +457,11 @@ public function table_truncate($tb)
public function url_file_clean($file_type)
{
global $wpdb;

if (!$this->tb_exist('url_file')) {
return;
}

$type = $this->_url_file_types[$file_type];
$q = 'DELETE FROM ' . $this->tb('url_file') . ' WHERE `type` = %d';
$wpdb->query($wpdb->prepare($q, $type));
Expand Down

0 comments on commit e3c18fd

Please sign in to comment.