diff --git a/cache/securitylog.txt b/cache/securitylog.txt
new file mode 100644
index 0000000..0e6d356
--- /dev/null
+++ b/cache/securitylog.txt
@@ -0,0 +1 @@
+127.0.0.1;2021-10-21 16:41:00;wrong captcha http://localhost/typemill/tm/login
diff --git a/content/00-welcome/03-get-help.md b/content/00-welcome/03-get-help.md
index 0d7de07..d6e256f 100644
--- a/content/00-welcome/03-get-help.md
+++ b/content/00-welcome/03-get-help.md
@@ -8,3 +8,5 @@ Do you need professional help, an individual theme or a special plugin? You can
[Contributions](https://github.com/typemill/typemill#contributors--supporters), [donations](https://www.paypal.me/typemill) and [feedback](https://github.com/typemill/typemill/issues) for this open source project are always welcome.
+{.center loading="lazy"}
+
diff --git a/system/Controllers/ControllerAuthorArticleApi.php b/system/Controllers/ControllerAuthorArticleApi.php
index 52e9e4f..d021346 100644
--- a/system/Controllers/ControllerAuthorArticleApi.php
+++ b/system/Controllers/ControllerAuthorArticleApi.php
@@ -98,7 +98,7 @@ class ControllerAuthorArticleApi extends ControllerAuthor
$this->setFreshNavigation();
# update the sitemap
- $this->updateSitemap();
+ $this->updateSitemap($ping = true);
# complete the page meta if title or description not set
$writeMeta = new WriteMeta();
@@ -518,7 +518,7 @@ class ControllerAuthorArticleApi extends ControllerAuthor
$this->setFreshStructureDraft();
$this->setFreshStructureLive();
$this->setFreshNavigation();
- $this->updateSitemap();
+ $this->updateSitemap($ping = true);
$newUrlRel = str_replace($this->item->slug, $this->params['slug'], $this->item->urlRelWoF);
@@ -591,6 +591,9 @@ class ControllerAuthorArticleApi extends ControllerAuthor
# if the item has been moved within the same folder
if($this->params['parent_id_from'] == $this->params['parent_id_to'])
{
+ # no need to ping search engines
+ $ping = false;
+
# get key of item
$itemKey = end($itemKeyPath);
reset($itemKeyPath);
@@ -600,6 +603,9 @@ class ControllerAuthorArticleApi extends ControllerAuthor
}
else
{
+ # let us ping search engines
+ $ping = true;
+
# rename links in extended file
$this->renameExtended($item, $newFolder);
@@ -644,7 +650,7 @@ class ControllerAuthorArticleApi extends ControllerAuthor
$this->setFreshNavigation();
# update the sitemap
- $this->updateSitemap();
+ $this->updateSitemap($ping);
# dispatch event
$this->c->dispatcher->dispatch('onPageSorted', new OnPageSorted($this->params));
diff --git a/system/Controllers/ControllerSettings.php b/system/Controllers/ControllerSettings.php
index 9f6eeda..cbb4df4 100644
--- a/system/Controllers/ControllerSettings.php
+++ b/system/Controllers/ControllerSettings.php
@@ -120,6 +120,7 @@ class ControllerSettings extends ControllerShared
'securitylog' => isset($newSettings['securitylog']) ? true : null,
'oldslug' => isset($newSettings['oldslug']) ? true : null,
'refreshcache' => isset($newSettings['refreshcache']) ? true : null,
+ 'pingsitemap' => isset($newSettings['pingsitemap']) ? true : null,
);
# https://www.slimframework.com/docs/v3/cookbook/uploading-files.html;
diff --git a/system/Controllers/ControllerShared.php b/system/Controllers/ControllerShared.php
index 3309388..65df936 100644
--- a/system/Controllers/ControllerShared.php
+++ b/system/Controllers/ControllerShared.php
@@ -275,7 +275,7 @@ abstract class ControllerShared
return true;
}
- public function updateSitemap()
+ public function updateSitemap($ping = false)
{
$sitemap = '' . "\n";
$sitemap .= '