Skip to content

Commit

Permalink
* **GUI** Suppressed sitemap generation message if not triggered manu…
Browse files Browse the repository at this point in the history
…ally.
  • Loading branch information
Hai Zheng committed May 29, 2024
1 parent 49f55a0 commit 1584bf1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,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.5.2
Tested up to: 6.5.3
Stable tag: 6.2.0.1
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl.html
Expand Down Expand Up @@ -255,8 +255,11 @@ The vast majority of plugins and themes are compatible with LiteSpeed Cache. The
* **CLoud** Fixed an message error for daily quota.
* **ESI** Added ESI nonce for Events Calendar and Mobile hamburger menu - jetMenu. (#306983 #163710 PR#419)
* **ESI** Bypassed ESI at early stage when getting `DONOTCACHEPAGE`.
* **ESI** Add WP Data Access nonce (PR#665)
* **Media** Ignored images from JS in image size detection (PR#660)
* **Cache** Better control over the cache location #541 (Gal Baras/Tanvir Israq)
* **GUI** Removed Preset menu from network admin panel.
* **GUI** Suppressed sitemap generation message if not triggered manually.
* **Page Optimize** Cleaned up litespeed_url table when clearing url files. (PR#664)
* **Page Optimize** Updated Instant Click library to version 5.2.0.
* **Page Optimize** Flatsome theme random string excludes. (PR#415)
Expand Down
4 changes: 2 additions & 2 deletions src/crawler-map.cls.php
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ public function count_map()
* @since 1.1.0
* @access public
*/
public function gen()
public function gen($manual = false)
{
$count = $this->_gen();

Expand All @@ -374,7 +374,7 @@ public function gen()
return;
}

if (!defined('DOING_CRON')) {
if (!defined('DOING_CRON') && $manual) {
$msg = sprintf(__('Sitemap created successfully: %d items', 'litespeed-cache'), $count);
Admin_Display::succeed($msg);
}
Expand Down
4 changes: 2 additions & 2 deletions src/crawler.cls.php
Original file line number Diff line number Diff line change
Expand Up @@ -1302,7 +1302,7 @@ public function handler()

switch ($type) {
case self::TYPE_REFRESH_MAP:
$this->cls('Crawler_Map')->gen();
$this->cls('Crawler_Map')->gen(true);
break;

case self::TYPE_EMPTY:
Expand All @@ -1325,7 +1325,7 @@ public function handler()
}
break;

// Handle the ajax request to proceed crawler manually by admin
// Handle the ajax request to proceed crawler manually by admin
case self::TYPE_START:
self::start_async();
break;
Expand Down

0 comments on commit 1584bf1

Please sign in to comment.