diff --git a/litespeed-cache.php b/litespeed-cache.php index a8e4023de..f00bf8179 100644 --- a/litespeed-cache.php +++ b/litespeed-cache.php @@ -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 @@ -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 diff --git a/readme.txt b/readme.txt index 18611230f..1cb1d18d5 100644 --- a/readme.txt +++ b/readme.txt @@ -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 @@ -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. diff --git a/src/img-optm.cls.php b/src/img-optm.cls.php index 1bbab613c..5e6edc17d 100644 --- a/src/img-optm.cls.php +++ b/src/img-optm.cls.php @@ -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'])) { @@ -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);