Skip to content

Commit

Permalink
[v] v6.0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Hai Zheng committed Dec 15, 2023
1 parent 5f9ad3b commit 20cc03e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 17 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
* Version: 6.0.0.1
* 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');
!defined('LSCWP_V') && define('LSCWP_V', '6.0.0.1');

!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
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: LiteSpeedTech
Tags: caching, optimize, performance, pagespeed, core web vitals, seo, speed, image optimize, compress, object cache, redis, memcached, database cleaner
Requires at least: 4.0
Tested up to: 6.4.2
Stable tag: 6.0
Stable tag: 6.0.0.1
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl.html

Expand Down Expand Up @@ -250,6 +250,9 @@ The vast majority of plugins and themes are compatible with LiteSpeed Cache. The

== Changelog ==

= 6.0.0.1 - Dec 15 2023 =
* 🐞**Image Optimize** Grouped the taken notification to regional center servers to reduce the load after image pulled.

= 6.0 - Dec 12 2023 =
* 🌱**Image Optimize** Parallel pull. (⭐ Contributed by Peter Wells #581)
* 🌱**Cache** CLI Crawler.
Expand Down
28 changes: 14 additions & 14 deletions src/img-optm.cls.php
Original file line number Diff line number Diff line change
Expand Up @@ -1155,17 +1155,17 @@ public function pull($manual = false)
$complete_action($request_response, $cnt);
}
}
}

// Notify IAPI images taken
foreach ($server_list as $server => $img_list) {
$data = array(
'action' => self::CLOUD_ACTION_TAKEN,
'list' => $img_list,
'server' => $server,
);
// TODO: improve this so we do not call once per server, but just once and then filter on the server side
Cloud::post(Cloud::SVC_IMG_OPTM, $data);
}
// Notify IAPI images taken
foreach ($server_list as $server => $img_list) {
$data = array(
'action' => self::CLOUD_ACTION_TAKEN,
'list' => $img_list,
'server' => $server,
);
// TODO: improve this so we do not call once per server, but just once and then filter on the server side
Cloud::post(Cloud::SVC_IMG_OPTM, $data);
}

if (empty($this->_summary['img_taken'])) {
Expand Down Expand Up @@ -2051,10 +2051,10 @@ public function handler()
self::start_async();
break;

/**
* Batch switch
* @since 1.6.3
*/
/**
* Batch switch
* @since 1.6.3
*/
case self::TYPE_BATCH_SWITCH_ORI:
case self::TYPE_BATCH_SWITCH_OPTM:
$this->_batch_switch($type);
Expand Down

0 comments on commit 20cc03e

Please sign in to comment.